diff options
| author | Peter Collingbourne <peter@pcc.me.uk> | 2011-04-29 18:47:25 +0000 |
|---|---|---|
| committer | Peter Collingbourne <peter@pcc.me.uk> | 2011-04-29 18:47:25 +0000 |
| commit | 61f6602acd523b37d76b5cce2987ee3f680d750a (patch) | |
| tree | d5e7d4e3d8cf50d2e69e40cc7ef1f737da009b6b /llvm/lib/Transforms/Utils | |
| parent | 73ad5bc9ea0b6dad8392800fbe863bd34ab79c69 (diff) | |
| download | bcm5719-llvm-61f6602acd523b37d76b5cce2987ee3f680d750a.tar.gz bcm5719-llvm-61f6602acd523b37d76b5cce2987ee3f680d750a.zip | |
SimplifyCFG: Add Trunc, ZExt and SExt to the list of cheap instructions for phi node folding
llvm-svn: 130526
Diffstat (limited to 'llvm/lib/Transforms/Utils')
| -rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyCFG.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp index 5177d339597..1bddecb8c40 100644 --- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp @@ -261,6 +261,9 @@ static bool DominatesMergePoint(Value *V, BasicBlock *BB, case Instruction::LShr: case Instruction::AShr: case Instruction::ICmp: + case Instruction::Trunc: + case Instruction::ZExt: + case Instruction::SExt: break; // These are all cheap and non-trapping instructions. } |

