File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3489,7 +3489,7 @@ unsigned X86TargetLowering::preferedOpcodeForCmpEqPiecesOfOperand(
3489
3489
3490
3490
// We prefer rotate for vectors of if we won't get a zext mask with SRL
3491
3491
// (PreferRotate will be set in the latter case).
3492
- if (PreferRotate || VT.isVector())
3492
+ if (PreferRotate || !MayTransformRotate || VT.isVector())
3493
3493
return ShiftOpc;
3494
3494
3495
3495
// Non-vector type and we have a zext mask with SRL.
Original file line number Diff line number Diff line change @@ -997,8 +997,8 @@ define i1 @shr_to_rotate_eq_i32_s5(i32 %x) {
997
997
define i32 @issue108722 (i32 %0 ) {
998
998
; CHECK-NOBMI-LABEL: issue108722:
999
999
; CHECK-NOBMI: # %bb.0:
1000
- ; CHECK-NOBMI-NEXT: movzbl %dil , %ecx
1001
- ; CHECK-NOBMI-NEXT: shrl $24, %edi
1000
+ ; CHECK-NOBMI-NEXT: movl %edi , %ecx
1001
+ ; CHECK-NOBMI-NEXT: roll $24, %ecx
1002
1002
; CHECK-NOBMI-NEXT: xorl %eax, %eax
1003
1003
; CHECK-NOBMI-NEXT: cmpl %edi, %ecx
1004
1004
; CHECK-NOBMI-NEXT: sete %al
You can’t perform that action at this time.
0 commit comments