Skip to content
Commit 07d726ec authored by Nick Lewycky's avatar Nick Lewycky
Browse files

Optimize (x/y)*y into x-(x%y) in general. Div and rem are about the same, and

a subtract is cheaper than a multiply. This generalizes an existing transform.

llvm-svn: 59800
parent 6b0cf14b
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