diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-11-05 07:40:31 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-11-05 07:40:31 +0000 |
| commit | dd0c174082eda6cf40ae58c8218b43b253214e92 (patch) | |
| tree | 0522e20c364252b045a490318fd4f4b693515beb /llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp | |
| parent | e9ff0eaf5b025b630ae1d1fa73a6c757a8223184 (diff) | |
| download | bcm5719-llvm-dd0c174082eda6cf40ae58c8218b43b253214e92.tar.gz bcm5719-llvm-dd0c174082eda6cf40ae58c8218b43b253214e92.zip | |
Turn sdiv into udiv if both operands have a clear sign bit. This occurs
a few times in crafty:
OLD: %tmp.36 = div int %tmp.35, 8 ; <int> [#uses=1]
NEW: %tmp.36 = div uint %tmp.35, 8 ; <uint> [#uses=0]
OLD: %tmp.19 = div int %tmp.18, 8 ; <int> [#uses=1]
NEW: %tmp.19 = div uint %tmp.18, 8 ; <uint> [#uses=0]
OLD: %tmp.117 = div int %tmp.116, 8 ; <int> [#uses=1]
NEW: %tmp.117 = div uint %tmp.116, 8 ; <uint> [#uses=0]
OLD: %tmp.92 = div int %tmp.91, 8 ; <int> [#uses=1]
NEW: %tmp.92 = div uint %tmp.91, 8 ; <uint> [#uses=0]
Which all turn into shrs.
llvm-svn: 24190
Diffstat (limited to 'llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp')
0 files changed, 0 insertions, 0 deletions

