Skip to content
Commit 21c4adcd authored by Evan Cheng's avatar Evan Cheng
Browse files

Legalizer optimize a pair of div / mod to a call to divrem libcall if they are

not legal. However, it should use a div instruction + mul + sub if divide is
legal. The rem legalization code was missing a check and incorrectly uses a
divrem libcall even when div is legal.

rdar://12481395

llvm-svn: 165778
parent 408668a8
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