summaryrefslogtreecommitdiff
path: root/lib/CodeGen
Commit message (Collapse)AuthorAge
...
* jump tables handle picChris Lattner2006-10-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30776 91177308-0d34-0410-b5e6-96231b3b80d8
* print labels even if a MBB doesn't have a corresponding LLVM BB, just don'tChris Lattner2006-10-06
| | | | | | | print the LLVM BB label. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30775 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a miscompilation of:Chris Lattner2006-10-06
| | | | | | | | | | | | | | | | | | | | | | | | | | long long foo(long long X) { return (long long)(signed char)(int)X; } Instead of: _foo: extsb r2, r4 srawi r3, r4, 31 mr r4, r2 blr we now produce: _foo: extsb r4, r4 srawi r3, r4, 31 blr This fixes a miscompilation in ConstantFolding.cpp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30768 91177308-0d34-0410-b5e6-96231b3b80d8
* MachineBasicBlock::splice was incorrectly updating parent pointers onChris Lattner2006-10-06
| | | | | | | instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30760 91177308-0d34-0410-b5e6-96231b3b80d8
* Make use of getStore().Evan Cheng2006-10-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30759 91177308-0d34-0410-b5e6-96231b3b80d8
* Add getStore() helper function to create ISD::STORE nodes.Evan Cheng2006-10-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30758 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't crash if an MBB doesn't have an LLVM BBChris Lattner2006-10-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30757 91177308-0d34-0410-b5e6-96231b3b80d8
* Alias analysis code clean ups.Jim Laskey2006-10-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30753 91177308-0d34-0410-b5e6-96231b3b80d8
* Emit pic jumptables to the same section that the function is emitted to,Chris Lattner2006-10-05
| | | | | | | allowing label differences to work. This fixes CodeGen/X86/pic_jumptable.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30744 91177308-0d34-0410-b5e6-96231b3b80d8
* Pass the MachineFunction into EmitJumpTableInfo.Chris Lattner2006-10-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30742 91177308-0d34-0410-b5e6-96231b3b80d8
* move getSectionForFunction to AsmPrinterChris Lattner2006-10-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30736 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix some typos that can cause a flag value to have more than one use.Evan Cheng2006-10-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30727 91177308-0d34-0410-b5e6-96231b3b80d8
* More extensive alias analysis.Jim Laskey2006-10-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30721 91177308-0d34-0410-b5e6-96231b3b80d8
* More long term solutionJim Laskey2006-10-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30720 91177308-0d34-0410-b5e6-96231b3b80d8
* Work around for some problems with templates.Jim Laskey2006-10-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30715 91177308-0d34-0410-b5e6-96231b3b80d8
* Combine ISD::EXTLOAD, ISD::SEXTLOAD, ISD::ZEXTLOAD into ISD::LOADX. Add anEvan Cheng2006-10-04
| | | | | | | extra operand to LOADX to specify the exact value extension type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30714 91177308-0d34-0410-b5e6-96231b3b80d8
* Use $( $| $) to represent alternatives in asm blocks instead of {|}. ThisChris Lattner2006-10-03
| | | | | | | is needed to support targets where {|} aren't special symbols. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30712 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix an obvious typo.Evan Cheng2006-10-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30711 91177308-0d34-0410-b5e6-96231b3b80d8
* BugfixesChris Lattner2006-10-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30709 91177308-0d34-0410-b5e6-96231b3b80d8
* Print the MBB ID # along with the bb tag in the -print-machine-instrs output.Chris Lattner2006-10-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30708 91177308-0d34-0410-b5e6-96231b3b80d8
* Provide a function that ensures MBB numbering is dense and inorder. ThisChris Lattner2006-10-03
| | | | | | | can be used by MachineFunctionPasses who need this property. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30706 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix for PR929. The PHI nodes were being gone through for each instructionBill Wendling2006-10-03
| | | | | | | | | in a successor block for every block...resulting in some O(N^k) algorithm which wasn't very good for performance. Calculating this information up front and keeping it in a map made it much faster. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30697 91177308-0d34-0410-b5e6-96231b3b80d8
* Debugging kruftJim Laskey2006-10-02
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30688 91177308-0d34-0410-b5e6-96231b3b80d8
* Add ability to annotate (color) nodes in a viewGraph.Jim Laskey2006-10-02
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30686 91177308-0d34-0410-b5e6-96231b3b80d8
* simplify codeChris Lattner2006-09-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30659 91177308-0d34-0410-b5e6-96231b3b80d8
* TargetRegisterClass specifies the desired spill alignment. However, it ↵Evan Cheng2006-09-28
| | | | | | cannot be honored if stack alignment is smaller. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30648 91177308-0d34-0410-b5e6-96231b3b80d8
* "Once more into the breach, dear friends, once more, or fill the wall upBill Wendling2006-09-28
| | | | | | | | | | | with our English dead." No! Really! Serious this time...It was how the vreg uses were being adjusted that was causing hte Olden tests to fail. I corrected this and the Olden and Regression tests all passed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30644 91177308-0d34-0410-b5e6-96231b3b80d8
* refactor critical edge breaking out into the SplitCritEdgesForPHIConstants ↵Chris Lattner2006-09-28
| | | | | | | | | method. This is a baby step towards fixing PR925. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30643 91177308-0d34-0410-b5e6-96231b3b80d8
* re-re-revert this, back to the right revision. It currently breaks bisort/mstChris Lattner2006-09-28
| | | | | | | in olden among others. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30637 91177308-0d34-0410-b5e6-96231b3b80d8
* PEI now place callee save spills closest to the address pointed to by theEvan Cheng2006-09-28
| | | | | | | | incoming stack. This allows X86 backend to use push / pop in epilogue / prologue. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30636 91177308-0d34-0410-b5e6-96231b3b80d8
* re-revert this patch, bisort and mst are still broken in Olden.Chris Lattner2006-09-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30634 91177308-0d34-0410-b5e6-96231b3b80d8
* Reapplying this patch. With the newest commits, the error in Olden/bisortBill Wendling2006-09-27
| | | | | | | has disappeared. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30633 91177308-0d34-0410-b5e6-96231b3b80d8
* Temporarily revert this. This breaks Olden/bisort on PPCChris Lattner2006-09-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30628 91177308-0d34-0410-b5e6-96231b3b80d8
* PR878: Instead of calculating the vreg to PHI use count everytime we getBill Wendling2006-09-27
| | | | | | | | | a function, do it up front in linear time (going through all of the instructions once). We create a map out of them. Then it's no problem to use the information in it during elimination... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30624 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for ${:private} which prints "L" on darwin.Chris Lattner2006-09-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30620 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for ${:comment}, which expands to the current target's commentChris Lattner2006-09-26
| | | | | | | | character, and ${:uid} which expands to a unique ID for the MachineInstr. More can be added if/when they are needed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30619 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename function. It's determining which callee-save registers to save.Evan Cheng2006-09-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30616 91177308-0d34-0410-b5e6-96231b3b80d8
* Comments on JumpTablenessAndrew Lenharth2006-09-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30615 91177308-0d34-0410-b5e6-96231b3b80d8
* Load chain check is not neededJim Laskey2006-09-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30613 91177308-0d34-0410-b5e6-96231b3b80d8
* Chain can be any operandJim Laskey2006-09-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30611 91177308-0d34-0410-b5e6-96231b3b80d8
* Wrong size for loadJim Laskey2006-09-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30610 91177308-0d34-0410-b5e6-96231b3b80d8
* Can't move a load node if it's chain is not used.Jim Laskey2006-09-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30609 91177308-0d34-0410-b5e6-96231b3b80d8
* print the preds of each MBBChris Lattner2006-09-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30606 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for targets that want to do something with the llvm.used list,Chris Lattner2006-09-26
| | | | | | | because they have an aggressive linker that does dead code stripping. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30604 91177308-0d34-0410-b5e6-96231b3b80d8
* Accidental enable of bad codeJim Laskey2006-09-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30601 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix chain dropping in load and drop unused stores in ret blocks.Jim Laskey2006-09-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30600 91177308-0d34-0410-b5e6-96231b3b80d8
* Core antialiasing for load and store.Jim Laskey2006-09-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30597 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for other relocation bases to jump tables, as well as custom asm ↵Andrew Lenharth2006-09-24
| | | | | | directives git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30593 91177308-0d34-0410-b5e6-96231b3b80d8
* PIC jump table entries are always 32-bit. This fixes PIC jump table support ↵Evan Cheng2006-09-24
| | | | | | on X86-64. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30590 91177308-0d34-0410-b5e6-96231b3b80d8
* Make it work for DAG combine of multi-value nodes.Evan Cheng2006-09-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30573 91177308-0d34-0410-b5e6-96231b3b80d8