Skip to content

Commit bbb98ac

Browse files
committed
Address review comment
In shouldNormalizeToSelectSequence we should always pass in MVT::i1 to hasMultiplePredicateRegisters, since the VT argument passed to shouldNormalizeToSelectSequence refers to the type of the selected inputs.
1 parent 8826379 commit bbb98ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/CodeGen/TargetLowering.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2389,7 +2389,7 @@ class TargetLoweringBase {
23892389
EVT VT) const {
23902390
// If a target has multiple condition registers, then it likely has logical
23912391
// operations on those registers.
2392-
if (hasMultiplePredicateRegisters(VT))
2392+
if (hasMultiplePredicateRegisters(MVT::i1))
23932393
return false;
23942394
// Only do the transform if the value won't be split into multiple
23952395
// registers.

0 commit comments

Comments
 (0)