Skip to content

Commit 866f37c

Browse files
committed
!fixup change on EMULAndEEWAreEqual
1 parent 54ae24e commit 866f37c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

llvm/lib/Target/RISCV/RISCVVLOptimizer.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ struct OperandInfo {
8383
OperandInfo() = delete;
8484

8585
static bool EMULAndEEWAreEqual(const OperandInfo &A, const OperandInfo &B) {
86-
return A.Log2EEW == B.Log2EEW && A.EMUL->first == B.EMUL->first &&
87-
A.EMUL->second == B.EMUL->second;
86+
return A.Log2EEW == B.Log2EEW && A.EMUL == B.EMUL;
8887
}
8988

9089
static bool EEWAreEqual(const OperandInfo &A, const OperandInfo &B) {
@@ -1384,10 +1383,6 @@ RISCVVLOptimizer::checkUsers(const MachineInstr &MI) const {
13841383
// compatible. Otherwise, the EMUL *and* EEW must be compatible.
13851384
bool IsVectorOpUsedAsScalarOp = isVectorOpUsedAsScalarOp(UserOp);
13861385

1387-
if (!IsVectorOpUsedAsScalarOp &&
1388-
(!ConsumerInfo->EMUL || !ProducerInfo->EMUL))
1389-
return std::nullopt;
1390-
13911386
if ((IsVectorOpUsedAsScalarOp &&
13921387
!OperandInfo::EEWAreEqual(*ConsumerInfo, *ProducerInfo)) ||
13931388
(!IsVectorOpUsedAsScalarOp &&

0 commit comments

Comments
 (0)