diff options
author | Craig Topper <craig.topper@intel.com> | 2017-09-01 21:27:29 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2017-09-01 21:27:29 +0000 |
commit | 085c1f4deacaee22ff6bc09e35bc5044988f8359 (patch) | |
tree | a62b2b0c8fb6c70afa17f3cf668c98aaab0a447f /llvm/lib/Analysis/AssumptionCache.cpp | |
parent | f4425e9a66bb16df5f7857bfa7dbd504829cc0d0 (diff) | |
download | llvm-085c1f4deacaee22ff6bc09e35bc5044988f8359.zip llvm-085c1f4deacaee22ff6bc09e35bc5044988f8359.tar.gz llvm-085c1f4deacaee22ff6bc09e35bc5044988f8359.tar.bz2 |
[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.
llvm-svn: 312380
Diffstat (limited to 'llvm/lib/Analysis/AssumptionCache.cpp')
0 files changed, 0 insertions, 0 deletions