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

Strength reduce SAR into SHR if there is no way sign bits could be shifted

in.  This tends to get cases like this:

  X = cast ubyte to int
  Y = shr int X, ...

Tested by: shift.ll:test24

llvm-svn: 21775
parent 5140c15f
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