"README.md" did not exist on "502ac724ac671c1c699846905c74adb7cac6f8e9"
Instcombine was illegally transforming -X/C into X/-C when either X or C
overflowed on negation. This commit checks to make sure that neithe C nor X overflows. This requires that the RHS of X (a subtract instruction) be a constant integer. llvm-svn: 60275
Showing
- llvm/lib/Transforms/Scalar/InstructionCombining.cpp 20 additions, 3 deletionsllvm/lib/Transforms/Scalar/InstructionCombining.cpp
- llvm/test/Transforms/InstCombine/apint-sub.ll 5 additions, 3 deletionsllvm/test/Transforms/InstCombine/apint-sub.ll
- llvm/test/Transforms/InstCombine/sdiv-1.ll 22 additions, 0 deletionsllvm/test/Transforms/InstCombine/sdiv-1.ll
- llvm/test/Transforms/InstCombine/sub.ll 5 additions, 3 deletionsllvm/test/Transforms/InstCombine/sub.ll
Loading
Please register or sign in to comment