| commit | b18dbbfff519831cab68156ff3af06ee8a29137e | [log] [tgz] |
|---|---|---|
| author | Chris Lattner <sabre@nondot.org> | Sun May 08 17:34:56 2005 +0000 |
| committer | Chris Lattner <sabre@nondot.org> | Sun May 08 17:34:56 2005 +0000 |
| tree | 6691ee95d8d13c65ff8818249a976de4fcfd090c | |
| parent | 5140c15f08b0b60f31ccd88bfd8e19330b9d4878 [diff] |
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