aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/SimplifyInstructions.cpp
AgeCommit message (Collapse)Author
2011-12-01Propagate TargetLibraryInfo throughout ConstantFolding.cpp and Chad Rosier
InstructionSimplify.cpp. Other fixups as needed. Part of rdar://10500969 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145559 91177308-0d34-0410-b5e6-96231b3b80d8
2011-01-03Speed up instsimplify by about 10-15% by not bothering to retryDuncan Sands
InstructionSimplify on instructions that didn't change since the last time round the loop. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122745 91177308-0d34-0410-b5e6-96231b3b80d8
2010-12-31Simplify this pass by using a depth-first iterator to ensure that allDuncan Sands
operands are visited before the instructions themselves. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122647 91177308-0d34-0410-b5e6-96231b3b80d8
2010-12-31Zap dead instructions harder.Duncan Sands
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122645 91177308-0d34-0410-b5e6-96231b3b80d8
2010-12-21Visit instructions deterministically. Use a FIFO so as to approximatelyDuncan Sands
visit instructions before their uses, since InstructionSimplify does a better job in that case. All this prompted by Frits van Bommel. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122343 91177308-0d34-0410-b5e6-96231b3b80d8
2010-12-21If an instruction simplifies, try again to simplify any uses of it. This isDuncan Sands
not very important since the pass is only used for testing, but it does make it more realistic. Suggested by Frits van Bommel. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122336 91177308-0d34-0410-b5e6-96231b3b80d8
2010-12-20Oops, forgot to add the pass itself!Duncan Sands
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122265 91177308-0d34-0410-b5e6-96231b3b80d8