Transform:
%shr26 = lshr i32 %0, 16 ; [#uses=1 type=i32] %conv4 = trunc i32 %shr26 to i16 ; [#uses=1 type=i16] %3 = sext i16 %conv4 to i32 ; [#uses=N type=i32]
To:
%3 = ashr i32 %0, 16
Differential D32240
InstCombineCast AShr transformation marksl on Apr 19 2017, 12:43 PM. Authored by
Details
Transform: %shr26 = lshr i32 %0, 16 ; [#uses=1 type=i32] %conv4 = trunc i32 %shr26 to i16 ; [#uses=1 type=i16] %3 = sext i16 %conv4 to i32 ; [#uses=N type=i32] To: %3 = ashr i32 %0, 16
Diff Detail |
Please use more regular register names and elide the commends.