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(
34893489
34903490 // We prefer rotate for vectors of if we won't get a zext mask with SRL
34913491 // (PreferRotate will be set in the latter case).
3492- if (PreferRotate || VT.isVector())
3492+ if (PreferRotate || !MayTransformRotate || VT.isVector())
34933493 return ShiftOpc;
34943494
34953495 // 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) {
997997define i32 @issue108722 (i32 %0 ) {
998998; CHECK-NOBMI-LABEL: issue108722:
999999; 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
10021002; CHECK-NOBMI-NEXT: xorl %eax, %eax
10031003; CHECK-NOBMI-NEXT: cmpl %edi, %ecx
10041004; CHECK-NOBMI-NEXT: sete %al
You can’t perform that action at this time.
0 commit comments