commit | 8a70192b510e2a0f05493b9212e998017f3d178d | [log] [tgz] |
---|---|---|
author | Peter Collingbourne <peter@pcc.me.uk> | Fri Apr 29 18:47:25 2011 +0000 |
committer | Peter Collingbourne <peter@pcc.me.uk> | Fri Apr 29 18:47:25 2011 +0000 |
tree | 51617ac863e94c5d1b82f54b32f80c90ad714f75 | |
parent | c8497b6a2565046b5e6b5f2ea9dedc62b53dd966 [diff] [blame] |
SimplifyCFG: Add Trunc, ZExt and SExt to the list of cheap instructions for phi node folding git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130526 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index 5177d33..1bddecb 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -261,6 +261,9 @@ 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. }