Skip to content

Commit ba3e6f0

Browse files
authored
[RISCV][VLOPT] Remove dead passthru check in getOperandLog2EEW. NFC (#123911)
We already bail if the user is tied in checkUsers, which is true for all passthrus. Remove the check in getOperandLog2EEW so that it only worries about computing the OperandInfo, and leaves the passthru correctness to checkUsers.
1 parent 9cefa3e commit ba3e6f0

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

llvm/lib/Target/RISCV/RISCVVLOptimizer.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -208,13 +208,6 @@ getOperandLog2EEW(const MachineOperand &MO, const MachineRegisterInfo *MRI) {
208208
const bool HasPassthru = RISCVII::isFirstDefTiedToFirstUse(MI.getDesc());
209209
const bool IsTied = RISCVII::isTiedPseudo(MI.getDesc().TSFlags);
210210

211-
// We bail out early for instructions that have passthru with non NoRegister,
212-
// which means they are using TU policy. We are not interested in these
213-
// since they must preserve the entire register content.
214-
if (HasPassthru && MO.getOperandNo() == MI.getNumExplicitDefs() &&
215-
(MO.getReg() != RISCV::NoRegister))
216-
return std::nullopt;
217-
218211
bool IsMODef = MO.getOperandNo() == 0;
219212

220213
// All mask operands have EEW=1

0 commit comments

Comments
 (0)