Skip to content
Commit 70635ade authored by Bill Wendling's avatar Bill Wendling
Browse files

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
parent 44104279
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment