]> granicus.if.org Git - llvm/commit
[InstCombine] prevent possible miscompile with sdiv+negate of vector op
authorSanjay Patel <spatel@rotateright.com>
Tue, 9 Apr 2019 15:13:03 +0000 (15:13 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 9 Apr 2019 15:13:03 +0000 (15:13 +0000)
commit38daa71a61dd606dc1f0ede68b54d2c42e9db8a5
treeb196929099a6b2954cfcaed516987b7d1ebd76c5
parenta6a1dd0d3149f61b8fb635aa19fd0d6d173553d6
[InstCombine] prevent possible miscompile with sdiv+negate of vector op

Similar to:
rL358005

Forego folding arbitrary vector constants to fix a possible miscompile bug.
We can enhance the transform if we do want to handle the more complicated
vector case.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358013 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
test/Transforms/InstCombine/div.ll