summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* Fix viewCFG on Linux.Jeffrey Yasskin2010-02-231-1/+1
| | | | llvm-svn: 96834
* add a new Push2 opcode for targets (like cellspu) which haveChris Lattner2010-02-222-6/+32
| | | | | | | | ridiculously ginormous patterns and need more than one byte of displacement for encodings. This fixes CellSPU/fdiv.ll. SPU is still doing something else ridiculous though. llvm-svn: 96833
* These should not have been committed.Evan Cheng2010-02-224-46/+10
| | | | llvm-svn: 96827
* no need to run llvm-as here.Chris Lattner2010-02-225-5/+5
| | | | llvm-svn: 96826
* Instcombine constant folding can normalize gep with negative index to index ↵Evan Cheng2010-02-226-15/+86
| | | | | | with large offset. When instcombine objsize checking transformation sees these geps where the offset seemingly point out of bound, it should just return "i don't know" rather than asserting. llvm-svn: 96825
* Change ComplexPattern handling to push the node being matched asChris Lattner2010-02-221-21/+13
| | | | | | | | | | well as the operands produced when the pattern is matched. This allows CheckSame to work correctly when matching replicated names involving ComplexPatterns. This fixes a bunch of MSP430 failures, we're down to 13 failures, two of which are due to a sched bug. llvm-svn: 96824
* Updated version of r96634 (which was reverted due to failing 176.gcc andJim Grosbach2010-02-226-5/+34
| | | | | | | | 126.gcc nightly tests. These failures uncovered latent bugs that machine DCE could remove one half of a stack adjust down/up pair, causing PEI to assert. This update fixes that, and the tests now pass. llvm-svn: 96822
* Add a test for canonicalizing ConstantExpr operands.Dan Gohman2010-02-221-1/+10
| | | | llvm-svn: 96820
* Clean up a bit and fix for when SPAdj != 0Jim Grosbach2010-02-221-3/+2
| | | | llvm-svn: 96818
* The predicate index isn't fixed, so scan for it to make sure we get the properJim Grosbach2010-02-221-2/+3
| | | | | | | | | value. Thumb2 uses the tADJCALLSTACK* instructions, and doesn't need t2 versions, so remove the FIXME entry. llvm-svn: 96817
* Canonicalize ConstantInts to the right operand of commutativeDan Gohman2010-02-223-3/+7
| | | | | | | | | | operators. The test difference is just due to the multiplication operands being commuted (and thus requiring a more elaborate match). In optimized code, that expression would be folded. llvm-svn: 96816
* expand my hack to work with nodes that have flags but no chains and the Chris Lattner2010-02-221-1/+2
| | | | | | | isel doesn't know the correct # results. This fixes 8 codegen tests, down to 22 failures. llvm-svn: 96815
* add a new CheckMultiOpcode opcode for checking that a nodeChris Lattner2010-02-225-3/+51
| | | | | | | has one of the list of acceptable opcodes for a complex pattern. This fixes 4 regtest failures. llvm-svn: 96814
* When matching patterns that have a complex pattern as their root, make Chris Lattner2010-02-221-1/+16
| | | | | | | | sure to only run the complex pattern on nodes where the target opts in. This patch only handles targets with one opcode specified so far, but fixes 16 failures, only 34 left. llvm-svn: 96813
* add some debug hooks for tracking the behavior of the isel.Chris Lattner2010-02-221-0/+12
| | | | llvm-svn: 96812
* remove dupes now.Chris Lattner2010-02-221-2/+0
| | | | llvm-svn: 96811
* move #includes earlier.Chris Lattner2010-02-222-2/+3
| | | | llvm-svn: 96810
* MC/Mach-O: Remove non-sensical comment, and add a missing AddValueSymbols call.Daniel Dunbar2010-02-221-3/+1
| | | | llvm-svn: 96809
* Minor formatting cleanup.Dan Gohman2010-02-221-2/+1
| | | | llvm-svn: 96808
* Use Instruction::isCommutative instead of duplicating it.Dan Gohman2010-02-221-24/+1
| | | | llvm-svn: 96807
* Added SEL, SXTB16, SXTAB16, UXTAB16, SMMULR, SMMLAR, SMMLSR, SMUAD, and SMUSD,Johnny Chen2010-02-221-5/+83
| | | | | | for disassembly only. llvm-svn: 96806
* Erase deleted instructions from GVN's ValueTable. This fixes assertionBob Wilson2010-02-221-0/+7
| | | | | | failures from ValueTable::verifyRemoved() when using -debug. llvm-svn: 96805
* Actually enable the -enable-unsafe-fp-math tests.Dan Gohman2010-02-221-144/+144
| | | | llvm-svn: 96796
* Added a bunch of instructions for disassembly only:Johnny Chen2010-02-221-19/+145
| | | | | | | | | | o signed/unsigned add/subtract o signed/unsigned halving add/subtract o unsigned sum of absolute difference [and accumulate] o signed/unsigned saturate o signed multiply accumulate/subtract [long] dual llvm-svn: 96795
* Mark the return address stack slot as mutable when moving the return addressArnold Schwaighofer2010-02-222-2/+57
| | | | | | | | | | | | | | | | | during a tail call. A parameter might overwrite this stack slot during the tail call. The sequence during a tail call is: 1.) load return address to temp reg 2.) move parameters (might involve storing to return address stack slot) 3.) store return address to new location from temp reg If the stack location is marked immutable CodeGen can colocate load (1) with the store (3). This fixes bug 6225. llvm-svn: 96783
* LLVMC/MultiplePluginPriorities.td: Generally XFAIL this test for now, it isDaniel Dunbar2010-02-221-0/+4
| | | | | | | still failing during (one) llvm-gcc powerpc build, and is also failing on my x86_64-apple-darwin10. llvm-svn: 96781
* Remove unused variables and parameters.Dan Gohman2010-02-224-50/+28
| | | | llvm-svn: 96780
* Fix various doxygen warnings.Dan Gohman2010-02-2210-35/+31
| | | | llvm-svn: 96779
* Fix a typo in a comment.Dan Gohman2010-02-221-1/+1
| | | | llvm-svn: 96778
* Constant-fold certain comparisons with infinity and negative infinity.Dan Gohman2010-02-222-0/+181
| | | | llvm-svn: 96777
* Rename a variable to avoid a -Wshadow warning.Dan Gohman2010-02-221-1/+1
| | | | llvm-svn: 96776
* Remove the logic for reasoning about NaNs from the code that formsDan Gohman2010-02-222-132/+179
| | | | | | | | | | SSE min and max instructions. The real thing this code needs to be concerned about is negative zero. Update the sse-minmax.ll test accordingly, and add tests for -enable-unsafe-fp-math mode as well. llvm-svn: 96775
* When emitting an instruction which depends on both a post-incrementedDan Gohman2010-02-222-2/+36
| | | | | | | | | induction variable value and a loop-variant value, don't force the insert position to be at the post-increment position, because it may not be dominated by the loop-variant value. This fixes a use-before-def problem noticed on PPC. llvm-svn: 96774
* This cast<Instruction> is unnecessary.Dan Gohman2010-02-221-1/+1
| | | | llvm-svn: 96771
* enhance my hack for flags handling, this allows us to passChris Lattner2010-02-221-1/+2
| | | | | | CodeGen/X86/pr2182.ll. Down to 13 x86 failures out of ~1100 llvm-svn: 96770
* fix an incorrect VT: eflags is always i32. The bug was causing us toChris Lattner2010-02-221-1/+1
| | | | | | | | create an X86ISD::Cmp node with result type i64 on the CodeGen/X86/shift-i256.ll testcase and the new isel was assert on it downstream. llvm-svn: 96768
* fix most of the failures in the x86 suite by handling multiple Chris Lattner2010-02-212-9/+50
| | | | | | | | | | result nodes correctly. Note that this includes a horrible hack in DAGISelHeader which cannot be fixed reasonably without eliminating (parallel) from input patterns. That, in turn, can't be done until we support writing multiple result patterns for the X86and_flag and related multiple-result nodes. llvm-svn: 96767
* MC/X86: Add stub AsmBackend.Daniel Dunbar2010-02-215-3/+50
| | | | llvm-svn: 96763
* MC: Sketch registry support for target specific assembler backends.Daniel Dunbar2010-02-213-0/+107
| | | | llvm-svn: 96762
* Formatting tweaks (trailing whitespace, ordering, comments).Daniel Dunbar2010-02-211-89/+91
| | | | llvm-svn: 96761
* fix an odd thinko in an assertion, all arm tests pass now.Chris Lattner2010-02-211-1/+1
| | | | llvm-svn: 96758
* Always emit register class id references as i32 likeChris Lattner2010-02-211-1/+1
| | | | | | | DAGISelEmitter does. This fixes 11 arm failures (8 left). llvm-svn: 96757
* add some no-unwinds, other minor cleanups.Chris Lattner2010-02-213-30/+30
| | | | llvm-svn: 96756
* It turned out that we failed to emit proper symbol stubs on non-x86/darwin ↵Anton Korobeynikov2010-02-215-84/+35
| | | | | | | | | for ages (we emitted a reference to a stub, but no stub was emitted). The code inside x86-32/macho target objfile lowering should actually be the generic one - move it there. This (I really, really hope) should fix EH issues on ppc/darwin and arm/darwin. llvm-svn: 96755
* speculatively teach OPC_CheckValueType and OPC_EmitNode to handleChris Lattner2010-02-211-6/+15
| | | | | | MVT::iPTR. llvm-svn: 96753
* teach OPC_CheckType to handle MVT::iPTR, down to 2 ppc failures.Chris Lattner2010-02-211-3/+9
| | | | llvm-svn: 96752
* make this check a bit more generous, it may be outliving its Chris Lattner2010-02-211-0/+2
| | | | | | utility. Down to 6 ppc failures. llvm-svn: 96751
* Relax an assertion a bit. We allow replacing things likeChris Lattner2010-02-211-1/+3
| | | | | | | | <4 x i32> with <4 x float> values if they end up the same register class. This gets us up to 231 passes on the ppc tests (only 7 fails). llvm-svn: 96750
* add a triple so that this doesn't fail due to linux/ppc register printing Chris Lattner2010-02-211-1/+1
| | | | | | syntax. llvm-svn: 96748
* Sort the patterns before adding them to the FA so that we get theChris Lattner2010-02-211-7/+52
| | | | | | least cost matches. This gets us from 195 -> 208 passes on the ppc codegen tests. llvm-svn: 96747
OpenPOWER on IntegriCloud