Skip to content
Commit 2e90b732 authored by Chris Lattner's avatar Chris Lattner
Browse files

Turn A % (C << N), where C is 2^k, into A & ((C << N)-1) [urem only].

Turn A / (C1 << N), where C1 is "1<<C2" into A >> (N+C2) [udiv only].

Tested with: rem.ll:test5, div.ll:test10

llvm-svn: 26003
parent b624bb5f
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