Preston Gurd
43b2506e32
test commit.
...
llvm-svn: 151588
2012-02-27 23:31:51 +00:00
Eli Friedman
0774902a00
Duncan pointed out that if the alignment isn't explicitly specified, it defaults to the ABI alignment. Given that, make this code a bit more aggressive in such cases.
...
llvm-svn: 151584
2012-02-27 23:16:46 +00:00
Evandro Menezes
cf95bb758c
Delete incorrect reference to inexistent Hexagon architecture manuals.
...
llvm-svn: 151582
2012-02-27 23:00:52 +00:00
Bill Wendling
688793da4a
Don't use #if 0. Just remove until I can address this.
...
llvm-svn: 151580
2012-02-27 22:55:40 +00:00
Bill Wendling
06e4818dd6
XFAIL test until <rdar://problem/10913281> is fixed.
...
llvm-svn: 151578
2012-02-27 22:53:42 +00:00
Bill Wendling
7b4646184b
The code that cleans up multiple, isomorphic types has a subtle error that
...
manifests itself when building LLVM with LTO.
<rdar://problem/10913281>
llvm-svn: 151576
2012-02-27 22:34:19 +00:00
Michael J. Spencer
15a7b8e26a
Remove duplicate copy of Object/ELF.h that somehow managed to get in.
...
Patch by David Meyer.
llvm-svn: 151575
2012-02-27 22:06:44 +00:00
Evan Cheng
ddeb9d11fe
Fix for PR12090: clear def maps of aliases when visiting a copy. e.g.
...
%S5<def> = COPY %S0<kill>
First clear def map of Q1, etc.
No small test case available.
llvm-svn: 151574
2012-02-27 21:46:42 +00:00
Jim Grosbach
7b811d30d9
ARM BL/BLX instruction fixups should use relocations.
...
We on the linker to resolve calls to the appropriate BL/BLX instruction
to make interworking function correctly. It uses the symbol in the
relocation to do that, so we need to be careful about being too clever.
To enable this for ARM mode, split the BL/BLX fixup kind off from the
unconditional-branch fixups.
rdar://10927209
llvm-svn: 151571
2012-02-27 21:36:23 +00:00
Argyrios Kyrtzidis
65545aa904
Move "clang/Analysis/Support/SaveAndRestore.h" to "llvm/ADT/SaveAndRestore.h"
...
to make it more widely available.
llvm-svn: 151564
2012-02-27 21:08:33 +00:00
Eli Friedman
8bc169c3c5
Teach BasicAA about the LLVM IR rules that allow reading past the end of an object given sufficient alignment. Fixes PR12098.
...
llvm-svn: 151553
2012-02-27 20:46:07 +00:00
Roman Divacky
ded7f01062
Test the section specification.
...
llvm-svn: 151552
2012-02-27 20:42:19 +00:00
Derek Schuff
e932a68575
Fix PR12089
...
http://llvm.org/bugs/show_bug.cgi?id=12089
llvm-svn: 151550
2012-02-27 20:31:47 +00:00
Roman Divacky
8fe40cd659
Reapply r151278 with fixes.
...
MCize function entry label emission on PowerPC64 properly.
llvm-svn: 151547
2012-02-27 20:20:47 +00:00
Chad Rosier
a72393a3f9
Add q suffix aliases for the fistp and fisttp mnemonics.
...
rdar://10921670
PR11935
llvm-svn: 151543
2012-02-27 19:43:12 +00:00
Akira Hatanaka
b260f206d2
Remove unnecessary template parameters.
...
llvm-svn: 151540
2012-02-27 19:17:53 +00:00
Akira Hatanaka
3c5cab4730
Fix instruction predicates that were not set correctly.
...
llvm-svn: 151538
2012-02-27 19:09:08 +00:00
Jakob Stoklund Olesen
5aafb56dc0
Update machine code verifier.
...
After the SlotIndex slot names were updated, it is possible to apply
stricter checks to live intervals.
Also treat bundles as bags of operands when checking live intervals.
llvm-svn: 151531
2012-02-27 18:24:30 +00:00
Kevin Enderby
1489b523c3
Fix the symbolic operand added for the C disassmbler API for the ARM bl
...
thumb instruction. The PC adjustment is +4 in Thumb mode and +8 in ARM mode.
llvm-svn: 151530
2012-02-27 18:15:15 +00:00
Jakob Stoklund Olesen
1f152baef8
Add a MachineOperand iterator class.
...
The MIOperands iterator can visit operands on a single instruction, or
all operands in a bundle. This simplifies code like the register
allocator that treats bundles as a set of operands.
llvm-svn: 151529
2012-02-27 18:09:36 +00:00
Benjamin Kramer
93887631d9
Plog a memleak in GlobalOpt.
...
Found by valgrind.
llvm-svn: 151525
2012-02-27 12:48:24 +00:00
Duncan Sands
9edea84420
Micro-optimization, no functionality change.
...
llvm-svn: 151524
2012-02-27 12:11:41 +00:00
Jay Foad
8e9d47c039
Help the compiler to eliminate some dead code when hashing an array of T
...
where sizeof (T) is a multiple of 4.
llvm-svn: 151523
2012-02-27 11:00:17 +00:00
Duncan Sands
1be25a78f7
The value numbering function is recursive, so it is possible for multiple new
...
value numbers to be assigned when calculating any particular value number.
Enhance the logic that detects new value numbers to take this into account,
for a tiny compile time speedup. Fix a comment typo while there.
llvm-svn: 151522
2012-02-27 09:54:35 +00:00
Duncan Sands
27f459519d
When performing a conditional branch depending on the value of a comparison
...
%cmp (eg: A==B) we already replace %cmp with "true" under the true edge, and
with "false" under the false edge. This change enhances this to replace the
negated compare (A!=B) with "false" under the true edge and "true" under the
false edge. Reported to improve perlbench results by 1%.
llvm-svn: 151517
2012-02-27 08:14:30 +00:00
Craig Topper
317640dfd0
Remove HexagonGenIntrinsics.inc from Hexagon cmake file. It does not appear in the Makefile and the output it produces isn't used. The Hexagon intrinsics are all in the global Intrinsics.gen.
...
llvm-svn: 151514
2012-02-27 02:59:43 +00:00
Craig Topper
8e76068c6e
Update tblgen command guide. Remove unused tblgen InstrEnumEmitter files.
...
llvm-svn: 151513
2012-02-27 02:31:09 +00:00
Jia Liu
f6de2daf13
delete useless comment&blank
...
llvm-svn: 151512
2012-02-27 02:21:34 +00:00
Rafael Espindola
09a4201d3c
Fix this assert. IP can point to an instruction with strange dominance
...
properties (invoke). Just assert that the instruction we return dominates
the insertion point.
llvm-svn: 151511
2012-02-27 02:13:03 +00:00
Craig Topper
6491c8020e
X86 disassembler support for jcxz, jecxz, and jrcxz. Fixes PR11643. Patch by Kay Tiong Khoo.
...
llvm-svn: 151510
2012-02-27 01:54:29 +00:00
Chad Rosier
ce50eec7c6
Remove more GCC FE build stuff.
...
llvm-svn: 151507
2012-02-26 22:26:37 +00:00
Chad Rosier
579b40db6a
Installing the GCC front end is no longer supported.
...
llvm-svn: 151506
2012-02-26 22:17:05 +00:00
Chad Rosier
2270b005bb
Cleanup the LLVM Getting Started page.
...
llvm-svn: 151505
2012-02-26 22:12:59 +00:00
Chad Rosier
690a2b0902
Add href to clang in overview.
...
llvm-svn: 151503
2012-02-26 21:34:02 +00:00
Chad Rosier
233f147691
Remove references to llvm-gcc from overview and tutorial.
...
llvm-svn: 151502
2012-02-26 21:31:25 +00:00
Nadav Rotem
e4972ddea4
Add support for random constant vectors.
...
Patch by Joey Gouly.
llvm-svn: 151489
2012-02-26 13:56:18 +00:00
Nadav Rotem
115ec82ec7
Style fix: Remove unneeded parentheses.
...
llvm-svn: 151488
2012-02-26 12:34:17 +00:00
Nadav Rotem
63ff91d22a
Fix a bug in the code that checks if a store value is a vector of i1s
...
llvm-svn: 151487
2012-02-26 12:00:22 +00:00
Nadav Rotem
dc497b6c1c
Fix compilation on MSVC. Rename "_BB" to "Block"
...
Thanks zygoloid.
llvm-svn: 151481
2012-02-26 08:59:25 +00:00
Nadav Rotem
089cf4211c
fix a copy-and-paste error in the docs
...
llvm-svn: 151480
2012-02-26 08:43:43 +00:00
Nadav Rotem
78bda89412
Add a random .LL file generator to stress-test different llvm components.
...
llvm-svn: 151479
2012-02-26 08:35:53 +00:00
Rafael Espindola
a640db900a
Add testcase for the previous commit.
...
llvm-svn: 151475
2012-02-26 05:49:57 +00:00
Rafael Espindola
b660977c67
Don't call dominates on unreachable instructions. Should fix the dragonegg
...
build. Testcase is still reducing.
llvm-svn: 151474
2012-02-26 05:30:08 +00:00
Hal Finkel
a1d6afeddf
Default TargetData alignment information for 128-bit floating-point types.
...
llvm-svn: 151473
2012-02-26 04:13:31 +00:00
Rafael Espindola
ae725715ef
And update the comment...
...
llvm-svn: 151472
2012-02-26 02:36:56 +00:00
Rafael Espindola
fa75542078
Enable the assert that got all this dominator work started.
...
llvm-svn: 151471
2012-02-26 02:29:18 +00:00
Rafael Espindola
654320a0bb
Use the DT dominates function in the verifier.
...
llvm-svn: 151470
2012-02-26 02:23:37 +00:00
Rafael Espindola
94df267db3
Change the implementation of dominates(inst, inst) to one based on what the
...
verifier does. This correctly handles invoke.
Thanks to Duncan, Andrew and Chris for the comments.
Thanks to Joerg for the early testing.
llvm-svn: 151469
2012-02-26 02:19:19 +00:00
Rafael Espindola
bfa7579801
Don't call dominates on unreachable instructions.
...
llvm-svn: 151468
2012-02-26 02:14:25 +00:00
Nick Lewycky
3db143ea8c
Reinstate the optimization from r151449 with a fix to not turn 'gep %x' into
...
'gep null' when the icmp predicate is unsigned (or is signed without inbounds).
llvm-svn: 151467
2012-02-26 02:09:49 +00:00