commit | 35761d5d457fa51c974133617e3413cfeea9ca69 | [log] [tgz] |
---|---|---|
author | Craig Topper <craig.topper@intel.com> | Fri Sep 01 21:27:29 2017 +0000 |
committer | Craig Topper <craig.topper@intel.com> | Fri Sep 01 21:27:29 2017 +0000 |
tree | 240122ebce5c4a818831ba157b98e069f5f4cd82 | |
parent | 3cac265b271a7ca43069c0ce39e85fa49812e8f0 [diff] |
[InstCombine] When converting decomposeBitTestICmp's APInt return to ConstantInt, make sure we use the type from the Value* that was also returned from decomposeBitTestICmp. Previously we used the type from the LHS of the compare, but a future patch will change decomposeBitTestICmp to look through truncates so it will return a pretruncated Value* and the type needs to match that. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312380 91177308-0d34-0410-b5e6-96231b3b80d8