Rafael Espindola
c90a32a4e6
AnalyzeBranch modifies the bb, but we don't want to modify a bb with
...
eh edges. Swap the order of the checks to avoid it.
llvm-svn: 132806
2011-06-09 21:43:25 +00:00
Rafael Espindola
887fc1bdeb
A PHI in this basic block is a use in another basic block.
...
llvm-svn: 132805
2011-06-09 20:55:41 +00:00
John McCall
58fb52c6c7
When deleting a basic block, remove call edges only for non-intrinsics.
...
llvm-svn: 132803
2011-06-09 20:31:09 +00:00
Roman Divacky
4b5665a1f7
Fix emission of PPC64 assembler on non-darwin platforms by splitting
...
VK_PPC_{HA,LO}16 into darwin and gas variants.
Darwin wants {ha,lo}16(symbol) while gnu as wants symbol@{ha,l}.
llvm-svn: 132802
2011-06-09 20:25:38 +00:00
Johnny Chen
9e4b689923
Modify comment.
...
llvm-svn: 132800
2011-06-09 20:11:46 +00:00
John McCall
fc1ca36866
SplitCriticalEdge can sometimes split the edge from an invoke to a landing
...
pad, separating the exception and selector calls from the new lpad. Teaching
it not to do that, or to properly adjust the CFG afterwards, is out of
scope because it would require the other edges to the landing pad to be split
as well (effectively). Instead, just recover from the most likely cases
during inlining. The best long-term solution is to change the exception
representation and commit to either requiring or not requiring the more
complex edge-splitting logic; this is just a shorter-term hack.
llvm-svn: 132799
2011-06-09 20:06:24 +00:00
Rafael Espindola
73f93930e0
Refactor some checks into shouldTailDuplicate. Update comments.
...
No functionality change.
llvm-svn: 132798
2011-06-09 19:54:42 +00:00
John McCall
729c35b680
Teach the CallGraph to ignore calls to intrinsics.
...
llvm-svn: 132797
2011-06-09 19:46:27 +00:00
Eli Friedman
9008377c2d
Revert 132789; it breaks tests. My mistake.
...
llvm-svn: 132795
2011-06-09 19:33:30 +00:00
Fariborz Jahanian
624b299685
Don't add objc method name mangling to locally declared function.
...
// rdar://9566314
llvm-svn: 132791
2011-06-09 19:25:01 +00:00
Jason W Kim
7fbe7914af
Remove an uneeded switch - Turns out reloc results are identical w/o the switch. (face+palm)
...
llvm-svn: 132790
2011-06-09 19:13:45 +00:00
Eli Friedman
c095116710
Add a check to make sure we don't crash with strange configurations where we do fast-isel, then try to fold instructions. PR10092.
...
llvm-svn: 132789
2011-06-09 18:55:00 +00:00
Jakob Stoklund Olesen
68d6d8ab87
Move TableGen's register bank classes to their own source file.
...
I'll be moving some more code there to gather all of the
register-specific stuff in one place. Currently it is shared between
CodeGenTarget and RegisterInfoEmitter.
The plan is that CodeGenRegisters can compute the full register bank
structure while RegisterInfoEmitter only will handle the printing part.
llvm-svn: 132788
2011-06-09 18:42:07 +00:00
Galina Kistanova
869e715691
Added dg.exp to run FrontendC ARM-dependent tests; updated inline-asm-multichar.c test per this change.
...
llvm-svn: 132785
2011-06-09 17:18:37 +00:00
Hans Wennborg
de2e67e546
Handle overloaded operators in ?: precedence warning
...
This is a follow-up to r132565, and should address the rest of PR9969:
Warn about cases such as
int foo(A a, bool b) {
return a + b ? 1 : 2; // user probably meant a + (b ? 1 : 2);
}
also when + is an overloaded operator call.
llvm-svn: 132784
2011-06-09 17:06:51 +00:00
Bob Wilson
8b51f19ec1
Add isVCVT_N flag to identify Neon VCVT_N intrinsics, which require special
...
range checking for immediate operands. Radar 9558930.
llvm-svn: 132783
2011-06-09 17:03:27 +00:00
Bob Wilson
6b03ec7581
Add special-case range checking for VCVT_N intrinsic immediate operands.
...
Radar 9558930.
llvm-svn: 132782
2011-06-09 16:57:29 +00:00
Jakob Stoklund Olesen
5750ca7089
Remove custom allocation order boilerplate that is no longer needed.
...
The register allocators automatically filter out reserved registers and
place the callee saved registers last in the allocation order, so custom
methods are no longer necessary just for that.
Some targets still use custom allocation orders:
ARM/Thumb: The high registers are removed from GPR in thumb mode. The
NEON allocation orders prefer to use non-VFP2 registers first.
X86: The GR8 classes omit AH-DH in x86-64 mode to avoid REX trouble.
SystemZ: Some of the allocation orders are omitting R12 aliases without
explanation. I don't understand this target well enough to fix that. It
looks like all the boilerplate could be removed by reserving the right
registers.
llvm-svn: 132781
2011-06-09 16:56:59 +00:00
Howard Hinnant
30b7d2767c
Update CREDITS.TXT
...
llvm-svn: 132780
2011-06-09 16:53:33 +00:00
Eric Christopher
f15601f19a
Speculatively revert 132758 and 132768 to try to fix the Windows buildbots.
...
llvm-svn: 132777
2011-06-09 16:03:19 +00:00
Eric Christopher
cafa08cbf3
Recommit r132764 since it didn't cause the windows buildbot failures.
...
llvm-svn: 132776
2011-06-09 15:39:01 +00:00
Rafael Espindola
b77c00fb60
Improve the handling of available_externally and llvm.global_ctors.
...
llvm-svn: 132775
2011-06-09 14:38:09 +00:00
Duncan Sands
eeb50c8fd2
Enable printf() to iprintf() optimization for the TCE target.
...
Patch by Pekka Jaaskelainen.
llvm-svn: 132774
2011-06-09 11:11:45 +00:00
Chris Lattner
889c40e2e1
add another sandybridge alias.
...
llvm-svn: 132772
2011-06-09 06:38:17 +00:00
Eric Christopher
76fd742d16
Temporarily revert 132764 to see if it fixes the Windows buildbot.
...
llvm-svn: 132771
2011-06-09 06:29:54 +00:00
Eric Christopher
8ad343f292
Have the JIT tutorial use IRBuilder for the IR.
...
Patch by Jake Waskett!
llvm-svn: 132770
2011-06-09 05:58:50 +00:00
Jordy Rose
891d613289
[analyzer] Ignore parentheses around block-level expressions when computing liveness. Fixes the other half of PR8962.
...
llvm-svn: 132769
2011-06-09 05:44:04 +00:00
Akira Hatanaka
0683a7212e
Initial support for inline asm memory operand constraints.
...
llvm-svn: 132768
2011-06-09 03:31:05 +00:00
Cameron Zwarich
c62894d440
Remove a vacuous condition.
...
llvm-svn: 132767
2011-06-09 01:52:44 +00:00
Cameron Zwarich
77a699a829
Fix PR10104 by adding a bounds check on a vector element access check. It was
...
assuming that all offsets are legal vector accesses, and thus trying to access
the float member of { <2 x float>, float } as the 3rd element of the first
member.
llvm-svn: 132766
2011-06-09 01:45:33 +00:00
Eric Christopher
11edab6a46
If the alignment of the byval argument is greater than the alignment
...
of the frame then increase the maximum alignment of the frame to
match.
Fixes PR6965
llvm-svn: 132764
2011-06-09 00:15:19 +00:00
Eric Christopher
0713a9d8fc
Add a parameter to CCState so that it can access the MachineFunction.
...
No functional change.
Part of PR6965
llvm-svn: 132763
2011-06-08 23:55:35 +00:00
Jordy Rose
ab8a668849
[analyzer] Look through __extension__ expressions in a GRState's Environment. Fixes PR8962.
...
llvm-svn: 132762
2011-06-08 22:47:39 +00:00
Tobias Grosser
3d2efafb36
www: Fix path to git repository.
...
llvm-svn: 132761
2011-06-08 22:46:40 +00:00
Cameron Zwarich
c3b1cc9aca
Fix an assymmetry between ConvertScalar_ExtractValue and ConvertScalar_InsertValue. The
...
former was using the size of the entire alloca, whereas the latter was correctly using
the allocated size of the immediate type being converted (which may differ from the size
of the alloca). This fixes PR10082.
llvm-svn: 132759
2011-06-08 22:08:31 +00:00
Akira Hatanaka
4e9af454f7
Fix bug in lowering of DYNAMIC_STACKALLOC nodes. The correct offset of the
...
dynamically allocated stack area was not set.
llvm-svn: 132758
2011-06-08 21:28:09 +00:00
Ted Kremenek
ef644c56a2
Remove stale reference to libIndex.
...
llvm-svn: 132757
2011-06-08 19:52:31 +00:00
Akira Hatanaka
195a1e2184
Reorganize code in MipsTargetLowering::LowerCall to improve readability.
...
llvm-svn: 132756
2011-06-08 17:39:33 +00:00
Tobias Grosser
d0357f8cc8
www: Allow file listing in directory of example files.
...
llvm-svn: 132755
2011-06-08 17:36:11 +00:00
Marshall Clow
8da97113c2
Added Marshall to CREDITS.TXT as requested
...
llvm-svn: 132754
2011-06-08 16:58:01 +00:00
Fariborz Jahanian
5d5cf1905c
Remove 'atomic' as a property attribute keyword.
...
It is not a sanctioned keyword and is assumed as default.
// rdar://8790791
llvm-svn: 132753
2011-06-08 16:40:09 +00:00
Stuart Hastings
5b7b11cedb
Followup to 132737; make two-character string explicit, add some
...
comments. rdar://problem/9037836
llvm-svn: 132752
2011-06-08 16:06:31 +00:00
Andrew Trick
6ed0c63559
Remove a temporary test case probe in CheckForLiveRegDef.
...
llvm-svn: 132751
2011-06-08 15:19:49 +00:00
Peter Collingbourne
23f1bee3c0
Modify a diagnostic introduced in r132612 to emit QualTypes directly
...
This fixes a memory error on FreeBSD (and is the right thing to do
in any case).
llvm-svn: 132750
2011-06-08 15:15:17 +00:00
Rafael Espindola
eabd18b931
Fix count.
...
llvm-svn: 132749
2011-06-08 14:23:19 +00:00
Rafael Espindola
dfbf6de747
Count how many phis we are creating.
...
llvm-svn: 132748
2011-06-08 14:13:31 +00:00
Chandler Carruth
e6c881843d
Fix a bunch more notes that were emitted even when the diagnostic they
...
were intended for was suppressed.
llvm-svn: 132746
2011-06-08 10:26:03 +00:00
Chandler Carruth
2561f09c9b
Revert "hack in my new variables for GCC"
...
Very sorry for the accidental commit of WIP code.
llvm-svn: 132745
2011-06-08 10:14:38 +00:00
Chandler Carruth
d54186ac33
Fix a regression in the two-phase lookup diagnostics that switching the
...
namespace set algorithm (re-)introduced. We may not have seen the 'std'
namespace, but we should still suggested associated namespaces. Easy
fix, but a bit annoying to test.
llvm-svn: 132744
2011-06-08 10:13:17 +00:00
Chandler Carruth
0169ec0988
hack in my new variables for GCC
...
llvm-svn: 132743
2011-06-08 10:13:14 +00:00