[PATCH] D152960: [RISCV] Reuse RISCVDAGToDAGISel member TTI in doPeepholeMaskedRVV. NFC
Philip Reames via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 16 16:40:03 PDT 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG39e2232942dd: [RISCV] Reuse RISCVDAGToDAGISel member TTI in doPeepholeMaskedRVV. NFC (authored by luke, committed by reames).
Herald added a subscriber: wangpc.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152960/new/
https://reviews.llvm.org/D152960
Files:
llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
Index: llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
===================================================================
--- llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
+++ llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
@@ -3177,8 +3177,7 @@
// Retrieve the tail policy operand index, if any.
std::optional<unsigned> TailPolicyOpIdx;
- const RISCVInstrInfo &TII = *Subtarget->getInstrInfo();
- const MCInstrDesc &MaskedMCID = TII.get(N->getMachineOpcode());
+ const MCInstrDesc &MaskedMCID = TII->get(N->getMachineOpcode());
bool UseTUPseudo = false;
if (RISCVII::hasVecPolicyOp(MaskedMCID.TSFlags)) {
@@ -3203,7 +3202,7 @@
// If this instruction is tail agnostic, the unmasked instruction should not
// have a tied destination.
#ifndef NDEBUG
- const MCInstrDesc &MCID = TII.get(Opc);
+ const MCInstrDesc &MCID = TII->get(Opc);
bool HasTiedDest = RISCVII::isFirstDefTiedToFirstUse(MCID);
assert((UseTUPseudo == HasTiedDest) && "Unexpected pseudo to transform to");
#endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152960.532325.patch
Type: text/x-patch
Size: 1003 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230616/8c718ee4/attachment.bin>
More information about the llvm-commits
mailing list