Skip to content
Commit 9a693417 authored by Dan Gohman's avatar Dan Gohman
Browse files

Don't lower srem/urem X%C to X-X/C*C unless the division is actually

optimized. This avoids creating illegal divisions when the combiner is
running after legalize; this fixes PR1815. Also, it produces better
code in the included testcase by avoiding the subtract and multiply
when the division isn't optimized.

llvm-svn: 44341
parent 084b0eb3
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