File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff 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 &&
You can’t perform that action at this time.
0 commit comments