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
1 file changed
tree: 6691ee95d8d13c65ff8818249a976de4fcfd090c
  1. llvm/