[PATCH] Fix PR22222
sanjoy at playingwithpointers.com
Wed Jan 14 14:38:55 PST 2015
Hi majnemer, hfinkel, atrick,
The bug was introduced in r225282. r225282 assumed that `sub X, Y` is the same as `add X, -Y`. This is not correct if we are going to upgrade the sub to `sub nuw`. This change fixes the issue by making the optimization ignore `sub` instructions.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 6062 bytes
Desc: not available
More information about the llvm-commits