Skip to content
Commit 94a622af authored by Benjamin Kramer's avatar Benjamin Kramer
Browse files

The srem -> urem transform is not safe for any divisor that's not a power of two.

E.g. -5 % 5 is 0 with srem and 1 with urem.

Also addresses Frits van Bommel's comments.

llvm-svn: 120049
parent 966b25b9
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