Chris Lattner [Thu, 26 Nov 2009 16:08:41 +0000 (16:08 +0000)]
rename test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89950
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Nov 2009 02:17:34 +0000 (02:17 +0000)]
Change the other half of aliasGEP (which handles GEP differencing) to use DecomposeGEPExpression. This dramatically simplifies and shrinks the code by eliminating the horrible CheckGEPInstructions method, fixes a miscompilation (@test3) and makes the code more aggressive. In particular, we now handle the @test4 case, which is reduced from the SmallPtrSet constructor. Missing this caused us to emit a variable length memset instead of a fixed size one.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89922
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Nov 2009 02:16:28 +0000 (02:16 +0000)]
add a new random feature test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89921
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Nov 2009 02:14:59 +0000 (02:14 +0000)]
Generalize DecomposeGEPExpression to exactly handle what Value::getUnderlyingObject does (when TD is around). This allows us to avoid calling DecomposeGEPExpression unless the ultimate alias check we care about passes, speedup up BasicAA a bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89920
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Nov 2009 02:13:03 +0000 (02:13 +0000)]
Implement a new DecomposeGEPExpression method, which decomposes a GEP into a list of scaled offsets. Use this to eliminate some previous ad-hoc code which was subtly broken (it assumed all Constant*'s were non-zero, but strange constant express could be zero).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89915
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Nov 2009 02:11:08 +0000 (02:11 +0000)]
Use GEPOperator more pervasively to simplify code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89914
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Nov 2009 01:51:18 +0000 (01:51 +0000)]
update some notes slightly
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89913
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Nov 2009 01:50:12 +0000 (01:50 +0000)]
remove some redundant braces
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89912
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 26 Nov 2009 00:35:01 +0000 (00:35 +0000)]
Test for 89905.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89906
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 26 Nov 2009 00:32:36 +0000 (00:32 +0000)]
When all defs of a vr are implicit_def, delete all of the defs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89905
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 26 Nov 2009 00:32:21 +0000 (00:32 +0000)]
Split tail duplication into a separate pass. This is needed to avoid
running tail duplication when doing branch folding for if-conversion, and
we also want to be able to run tail duplication earlier to fix some
reg alloc problems. Move the CanFallThrough function from BranchFolding
to MachineBasicBlock so that it can be shared by TailDuplication.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89904
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Wed, 25 Nov 2009 23:50:09 +0000 (23:50 +0000)]
Test for llvm-gcc checkin 89898.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89899
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 25 Nov 2009 23:28:01 +0000 (23:28 +0000)]
Update to reflect recent debugging information encoding changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89896
91177308-0d34-0410-b5e6-
96231b3b80d8
Viktor Kutuzov [Wed, 25 Nov 2009 22:44:18 +0000 (22:44 +0000)]
Rollback changes r89516: Added two SubtargetFeatures::AddFeatures methods, which accept a comma-separated string or already parsed command line parameters as input, and some code re-factoring to use these new methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89893
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 25 Nov 2009 21:13:39 +0000 (21:13 +0000)]
ProcessImplicitDefs should watch out for invalidated iterator and extra implicit operands on copies.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89880
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Wed, 25 Nov 2009 19:57:14 +0000 (19:57 +0000)]
Tail duplicate indirect branches for PowerPC, too.
With the testcase for pr3120, the "threaded interpreter" runtime decreases
from 1788 to 1413 with this change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89877
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Wed, 25 Nov 2009 18:26:09 +0000 (18:26 +0000)]
Avoid some possibly unsafe uses of StringRef::data().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89873
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 25 Nov 2009 17:36:49 +0000 (17:36 +0000)]
Use StringRef (again) in DebugInfo interface.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89866
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Wed, 25 Nov 2009 17:27:53 +0000 (17:27 +0000)]
Based on the testcase for pr3120, running on my MacPro with Xeon processors,
it is definitely profitable to tail duplicate indirect branches for x86.
This is likely to be true to various degrees for all modern x86 processors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89865
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Wed, 25 Nov 2009 12:17:58 +0000 (12:17 +0000)]
Support PIC loading of constant pool entries
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89863
91177308-0d34-0410-b5e6-
96231b3b80d8
Edward O'Callaghan [Wed, 25 Nov 2009 12:00:34 +0000 (12:00 +0000)]
Adjust comments to new semantics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89862
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 25 Nov 2009 06:53:08 +0000 (06:53 +0000)]
Sketch structure for X86 disassembler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89850
91177308-0d34-0410-b5e6-
96231b3b80d8
Edward O'Callaghan [Wed, 25 Nov 2009 06:32:19 +0000 (06:32 +0000)]
API change Path::isSpecialFile to Path::isRegularFile, improve semantics in regards to comments from 89765 post review.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89848
91177308-0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Wed, 25 Nov 2009 06:04:18 +0000 (06:04 +0000)]
Perform explicit instantiations in the proper namespace, since Clang diagnoses this ill-formity.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89846
91177308-0d34-0410-b5e6-
96231b3b80d8
Edward O'Callaghan [Wed, 25 Nov 2009 05:38:41 +0000 (05:38 +0000)]
Reverting patch in revision 89758, initial attempt at fixing PR5373 has proven to be bogus.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89844
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 25 Nov 2009 04:46:58 +0000 (04:46 +0000)]
Add the rest of the build system logic for optional target disassemblers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89841
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 25 Nov 2009 04:37:28 +0000 (04:37 +0000)]
Regenerate configure
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89840
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 25 Nov 2009 04:30:13 +0000 (04:30 +0000)]
Add CMake and configure logic to create llvm/Config/Disassemblers.defs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89839
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 25 Nov 2009 02:13:23 +0000 (02:13 +0000)]
Sketch TableGen disassembler emitter, based on patch by Sean Callanan.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89833
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Wed, 25 Nov 2009 01:05:25 +0000 (01:05 +0000)]
Use endianess dependent offsets for load/store of doubles when
using two swc/lwc instead of sdc/ldc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89826
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Wed, 25 Nov 2009 00:58:21 +0000 (00:58 +0000)]
Fix compiler warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89824
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Wed, 25 Nov 2009 00:47:43 +0000 (00:47 +0000)]
Only include in the callee saved regs the sub registers to avoid
unnecessary save/restore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89823
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Wed, 25 Nov 2009 00:36:00 +0000 (00:36 +0000)]
Add proper emission of load/store double to stack slots for mips1 targets!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89821
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 25 Nov 2009 00:31:13 +0000 (00:31 +0000)]
Revert r89803.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89819
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Tue, 24 Nov 2009 23:35:49 +0000 (23:35 +0000)]
Refactor target hook for tail duplication as requested by Chris.
Make tail duplication of indirect branches much more aggressive (for targets
that indicate that it is profitable), based on further experience with
this transformation. I compiled 3 large applications with and without
this more aggressive tail duplication and measured minimal changes in code
size. ("size" on Darwin seems to round the text size up to the nearest
page boundary, so I can only say that any code size increase was less than
one 4k page.) Radar
7421267.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89814
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Tue, 24 Nov 2009 22:59:02 +0000 (22:59 +0000)]
Do not store R31 into the caller's link area on PPC.
This violates the ABI (that area is "reserved"), and
while it is safe if all code is generated with current
compilers, there is some very old code around that uses
that slot for something else, and breaks if it is stored
into. Adjust testcases looking for current behavior.
I've verified that the stack frame size is right in all
testcases, whether it changed or not.
7311323.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89811
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 24 Nov 2009 21:38:54 +0000 (21:38 +0000)]
Enable debug info for ppc-darwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89803
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 24 Nov 2009 19:42:17 +0000 (19:42 +0000)]
Use StringRef instead of std::string in DIEString.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89793
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 24 Nov 2009 19:37:07 +0000 (19:37 +0000)]
Remove DebugLabelFolder pass. It is not used by dwarf writer anymore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89790
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 24 Nov 2009 19:18:41 +0000 (19:18 +0000)]
Swith to pubtypes section before emitting pub types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89787
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 24 Nov 2009 19:03:33 +0000 (19:03 +0000)]
Remove bogus error handling code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89786
91177308-0d34-0410-b5e6-
96231b3b80d8
Edward O'Callaghan [Tue, 24 Nov 2009 16:29:23 +0000 (16:29 +0000)]
Fix comments as pre-post review for rev.89765.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89770
91177308-0d34-0410-b5e6-
96231b3b80d8
Edward O'Callaghan [Tue, 24 Nov 2009 15:19:10 +0000 (15:19 +0000)]
Provide Path::isSpecialFile interface for PR5568.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89765
91177308-0d34-0410-b5e6-
96231b3b80d8
Edward O'Callaghan [Tue, 24 Nov 2009 11:51:52 +0000 (11:51 +0000)]
Fix for PR5373, Credit to Jakub Staszak.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89758
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 24 Nov 2009 08:06:15 +0000 (08:06 +0000)]
Enable predication of NEON instructions in Thumb2 mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89748
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeffrey Yasskin [Tue, 24 Nov 2009 02:11:14 +0000 (02:11 +0000)]
Oops. Re-disable JITTest.NoStubs on ARM and PPC since they still use stubs to
make far calls work.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89733
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 24 Nov 2009 01:48:15 +0000 (01:48 +0000)]
Delete some dead and non-obvious code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89729
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 24 Nov 2009 01:14:22 +0000 (01:14 +0000)]
Emit pubtypes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89725
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Tue, 24 Nov 2009 01:09:07 +0000 (01:09 +0000)]
Make capitalization of names starting "is" more consistent.
No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89724
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 24 Nov 2009 01:05:23 +0000 (01:05 +0000)]
Data type suffix must come after predicate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89723
91177308-0d34-0410-b5e6-
96231b3b80d8
David Goodwin [Tue, 24 Nov 2009 00:59:08 +0000 (00:59 +0000)]
<rdar://problem/
6721894>. Allow multiple registers to be renamed together (super and sub) if necessary to break an anti-dependence.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89722
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Tue, 24 Nov 2009 00:44:37 +0000 (00:44 +0000)]
Materialize global addresses via movt/movw pair, this is always better
than doing the same via constpool:
1. Load from constpool costs 3 cycles on A9, movt/movw pair - just 2.
2. Load from constpool might stall up to 300 cycles due to cache miss.
3. Movt/movw does not use load/store unit.
4. Less constpool entries => better compiler performance.
This is only enabled on ELF systems, since darwin does not have needed
relocations (yet).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89720
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 24 Nov 2009 00:20:27 +0000 (00:20 +0000)]
80 column violations
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89718
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeffrey Yasskin [Mon, 23 Nov 2009 23:35:19 +0000 (23:35 +0000)]
* Move stub allocation inside the JITEmitter, instead of exposing a
way for each TargetJITInfo subclass to allocate its own stubs. This
means stubs aren't as exactly-sized anymore, but it lets us get rid of
TargetJITInfo::emitFunctionStubAtAddr(), which lets ARM and PPC
support the eager JIT, fixing http://llvm.org/PR4816.
* Rename the JITEmitter's stub creation functions to describe the kind
of stub they create. So far, all of them create lazy-compilation
stubs, but they sometimes get used when far-call stubs are needed.
Fixing http://llvm.org/PR5201 will involve fixing this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89715
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 23 Nov 2009 23:25:54 +0000 (23:25 +0000)]
enable iv-users simplification by default
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89713
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 23 Nov 2009 23:20:51 +0000 (23:20 +0000)]
Remove ISD::DEBUG_LOC and ISD::DBG_LABEL, which are no longer used.
Note that "hasDotLocAndDotFile"-style debug info was already broken;
people wanting this functionality should implement it in the
AsmPrinter/DwarfWriter code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89711
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeffrey Yasskin [Mon, 23 Nov 2009 22:49:00 +0000 (22:49 +0000)]
Allow more than one stub to be being generated at the same time.
It's probably better in the long run to replace the
indirect-GlobalVariable system. That'll be done after a subsequent
patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89708
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 23 Nov 2009 21:57:23 +0000 (21:57 +0000)]
Massive refactoring of NEON instructions. Separate opcode from data size specifier suffix, move \t up stream to instruction format, and fix more 80 column violations.
This fixes the NEON asm printing so the "predicate" field is printed between the opcode and the data type suffix.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89706
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 23 Nov 2009 21:30:55 +0000 (21:30 +0000)]
Simplify this code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89702
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 23 Nov 2009 21:29:08 +0000 (21:29 +0000)]
Print the debug info line and column in MachineInstr::print even when there's
no filename. This situation is apparently fairly common right now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89701
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 23 Nov 2009 21:08:25 +0000 (21:08 +0000)]
move fconst[sd] to UAL. <rdar://
7414913>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89700
91177308-0d34-0410-b5e6-
96231b3b80d8
Johnny Chen [Mon, 23 Nov 2009 21:00:43 +0000 (21:00 +0000)]
Partially revert r84730 by removing N2VDup from ARMInstrFormats.td and modifying
VDUPLND and VDUPLNQ to derive from N2V instead of N2VDup. VDUPLND and VDUPLNQ
now expect op19_18 and op17_16 as the first two args.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89699
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 23 Nov 2009 20:39:53 +0000 (20:39 +0000)]
update test for 89694
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89695
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 23 Nov 2009 20:35:53 +0000 (20:35 +0000)]
fold immediate of a + Const into the user as a subtract if it can fit as a negated two-part immediate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89694
91177308-0d34-0410-b5e6-
96231b3b80d8
Johnny Chen [Mon, 23 Nov 2009 20:09:13 +0000 (20:09 +0000)]
Revert r84572 by removing N3VImm from ARMInstrFormats.td now that we can specify
{?,?,?,?} as op11_8 for VEXTd and VEXTq.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89693
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 23 Nov 2009 19:11:20 +0000 (19:11 +0000)]
Add CreateLocation varinat that accepts MDNode (with a default value).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89689
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 23 Nov 2009 18:43:37 +0000 (18:43 +0000)]
Revert r89487.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89686
91177308-0d34-0410-b5e6-
96231b3b80d8
Johnny Chen [Mon, 23 Nov 2009 18:16:16 +0000 (18:16 +0000)]
Partially revert r89377 by removing NLdStLN class definition from
ARMInstrFormats.td and fixing VLD[234]LN* and VST[234]LN* to derive from NLdSt
instead of NLdStLN.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89684
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 23 Nov 2009 18:12:11 +0000 (18:12 +0000)]
Move CopyCatchInfo into FunctionLoweringInfo.cpp too, for consistency.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89683
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 23 Nov 2009 18:04:58 +0000 (18:04 +0000)]
Rename SelectionDAGLowering to SelectionDAGBuilder, and rename
SelectionDAGBuild.cpp to SelectionDAGBuilder.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89681
91177308-0d34-0410-b5e6-
96231b3b80d8
Johnny Chen [Mon, 23 Nov 2009 17:48:17 +0000 (17:48 +0000)]
Make it clear that the index bit(s) of Vector Get Lane and Vector Set Lane
should be left unspecified now that Bob Wilson has fixed pr5470.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89676
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 23 Nov 2009 17:46:23 +0000 (17:46 +0000)]
Move RegsForValue to an anonymous namespace, since it is only used
in this file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89675
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 23 Nov 2009 17:42:46 +0000 (17:42 +0000)]
Move some more code out of SelectionDAGBuild.cpp and into
FunctionLoweringInfo.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89674
91177308-0d34-0410-b5e6-
96231b3b80d8
David Goodwin [Mon, 23 Nov 2009 17:34:12 +0000 (17:34 +0000)]
Minor itinerary fixes for FP instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89672
91177308-0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 23 Nov 2009 17:26:04 +0000 (17:26 +0000)]
Update CMake file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89671
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 23 Nov 2009 17:16:22 +0000 (17:16 +0000)]
Move the FunctionLoweringInfo class and some related utility functions out
of SelectionDAGBuild.h/cpp into its own files, to help separate
general lowering logic from SelectionDAG-specific lowering logic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89667
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Nov 2009 17:07:35 +0000 (17:07 +0000)]
fix comment, thanks all :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89666
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Nov 2009 16:46:41 +0000 (16:46 +0000)]
use the new isNoAlias method to simplify some code, only do an escaping check if
we have a non-constant pointer. Constant pointers can't be local.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89665
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Nov 2009 16:45:27 +0000 (16:45 +0000)]
whitespace cleanup, tidying
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89664
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Nov 2009 16:44:43 +0000 (16:44 +0000)]
speed up BasicAA a bit by implementing a long-standing TODO.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89663
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Nov 2009 16:38:54 +0000 (16:38 +0000)]
add a helper
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89662
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 23 Nov 2009 16:24:18 +0000 (16:24 +0000)]
Move FunctionPassManagerImpl's dumpArguments and dumpPasses calls
out of its run function and into its doInitialization method, so
that it does the dump once instead of once per function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89660
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 23 Nov 2009 16:22:21 +0000 (16:22 +0000)]
Make ConstantFoldConstantExpression recursively visit the entire
ConstantExpr, not just the top-level operator. This allows it to
fold many more constants.
Also, make GlobalOpt call ConstantFoldConstantExpression on
GlobalVariable initializers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89659
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 23 Nov 2009 16:13:39 +0000 (16:13 +0000)]
Fix a use of an invalidated iterator in the case where there are multiple
adjacent uses of a dead basic block from the same user. This fixes PR5596.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89658
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Mon, 23 Nov 2009 10:49:03 +0000 (10:49 +0000)]
I forgot to update the prototype for LLVMBuildIntCast when correcting
the body to not pass the name for the isSigned parameter. However it
seems that changing prototypes is a big-no-no, so here I revert the
previous change and pass "true" for isSigned, meaning this always does
a signed cast, which was the previous behaviour assuming the name was
not NULL! Some other C function needs to be introduced for the general
case of signed or unsigned casts. This hopefully unbreaks the ocaml
binding.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89648
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Mon, 23 Nov 2009 04:52:00 +0000 (04:52 +0000)]
Start catching LLVMContext misuse in the verifier.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89646
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Mon, 23 Nov 2009 03:50:44 +0000 (03:50 +0000)]
Pull LLVMContext out of PromoteMemToReg.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89645
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Mon, 23 Nov 2009 03:34:29 +0000 (03:34 +0000)]
Remove LLVMContext and its include.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89644
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Mon, 23 Nov 2009 03:29:18 +0000 (03:29 +0000)]
Remove unused LLVMContext.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89642
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Mon, 23 Nov 2009 03:26:09 +0000 (03:26 +0000)]
Remove dead LLVMContext argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89641
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Mon, 23 Nov 2009 03:17:33 +0000 (03:17 +0000)]
Reapply r88830 with a bugfix: this transform only applies to icmp eq/ne. This
fixes part of PR5438.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89639
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Mon, 23 Nov 2009 00:40:39 +0000 (00:40 +0000)]
CMake: Updated library dependencies.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89637
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Mon, 23 Nov 2009 00:32:42 +0000 (00:32 +0000)]
CMake: Do not try to install a target before it is defined.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89636
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Mon, 23 Nov 2009 00:21:43 +0000 (00:21 +0000)]
CMake: generate targets for tools and examples even when
LLVM_BUILD_TOOLS or LLVM_BUILD_EXAMPLES are OFF.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89635
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sun, 22 Nov 2009 22:59:26 +0000 (22:59 +0000)]
FileCheck, PR5239: Try to find the intended match on failures, but looking for a
good nearby fuzzy match. Frequently the input is nearly correct, and just
showing the user the a nearby sensible match is enough to diagnose the problem.
- The "fuzzyness" is pretty simple and arbitrary, but worked on my three test
cases. If you encounter problems, or places you think FileCheck should have
guessed but didn't, please add test cases to PR5239.
For example, previously FileCheck would report this:
--
t.cpp:21:55: error: expected string not found in input
// CHECK: define void @_Z2f25f2_s1([[i64_i64_ty]] %a0)
^
<stdin>:19:30: note: scanning from here
define void @_Z2f15f1_s1(%1) nounwind {
^
<stdin>:19:30: note: with variable "i64_i64_ty" equal to "%0"
--
and now it also reports this:
--
<stdin>:27:1: note: possible intended match here
define void @_Z2f25f2_s1(%0) nounwind {
^
--
which makes it clear that the CHECK just has an extra ' %a0' in it, without
having to check the input.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89631
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sun, 22 Nov 2009 22:08:06 +0000 (22:08 +0000)]
FileCheck: When a string using variable references fails to match, print
additional information about the current definitions of the variables used in
the string.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89628
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sun, 22 Nov 2009 22:08:00 +0000 (22:08 +0000)]
SourceMgr: Add ShowLine argument to PrintMessage, to allow suppressing the source line output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89627
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sun, 22 Nov 2009 22:07:50 +0000 (22:07 +0000)]
Allow '_' in FileCheck variable names, it is nice to have at least one
separate character.
- Chris, OK?
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89626
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Sun, 22 Nov 2009 20:14:00 +0000 (20:14 +0000)]
Add getFrameIndexReference() to TargetRegisterInfo, which allows targets to
tell debug info which base register to use to reference a frame index on a
per-index basis. This is useful, for example, in the presence of dynamic
stack realignment when local variables are indexed via the stack pointer and
stack-based arguments via the frame pointer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89620
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Sun, 22 Nov 2009 20:05:32 +0000 (20:05 +0000)]
Move default FrameReg val to getFrameIndexReference(). Otherwise, debug info can get bogus values.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89618
91177308-0d34-0410-b5e6-
96231b3b80d8