summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/PeepholeOptimizer.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Move the search for the appropriate AND instructionGabor Greif2010-09-211-3/+3
| | | | | | | | | | into OptimizeCompareInstr. This necessitates the passing of CmpValue around, so widen the virtual functions to accomodate. No functionality changes. llvm-svn: 114428
* must not peephole away side effectsGabor Greif2010-09-141-1/+2
| | | | llvm-svn: 113848
* Rename ConvertToSetZeroFlag to something more general.Bill Wendling2010-09-111-2/+2
| | | | llvm-svn: 113670
* No need to recompute the SrcReg and CmpValue.Bill Wendling2010-09-101-1/+1
| | | | llvm-svn: 113666
* Move some of the decision logic for converting an instruction into one that setsBill Wendling2010-09-101-7/+2
| | | | | | | the 'zero' bit down into the back-end. There are other cases where this logic isn't sufficient, so they should be handled separately. llvm-svn: 113665
* Modify the comparison optimizations in the peephole optimizer to update theBill Wendling2010-09-101-6/+10
| | | | | | | iterator when an optimization took place. This allows us to do more insane things with the code than just remove an instruction or two. llvm-svn: 113640
* Remove now unneeded command line flag that enables 'optimize compares.'Bill Wendling2010-08-271-8/+1
| | | | llvm-svn: 112287
* Turn optimize compares back on with fix. We needed to test that a machine op wasBill Wendling2010-08-101-1/+1
| | | | | | a register before checking if it was defined. llvm-svn: 110733
* Revert r110718; it broke clang-i386-darwin9.Dan Gohman2010-08-101-1/+1
| | | | llvm-svn: 110726
* Turn optimize cmps on by default so that we can get some testing by the nightlyBill Wendling2010-08-101-1/+1
| | | | | | ARM testers. llvm-svn: 110718
* Merge the OptimizeExts and OptimizeCmps passes into one PeepholeOptimizerBill Wendling2010-08-091-0/+293
pass. This pass should expand with all of the small, fine-grained optimization passes to reduce compile time and increase happiment. llvm-svn: 110627
OpenPOWER on IntegriCloud