Skip to content

Commit 0201aea

Browse files
committed
getSubtarget
1 parent 8e748ac commit 0201aea

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15897,8 +15897,7 @@ static SDValue expandMulToAddOrSubOfShl(SDNode *N, SelectionDAG &DAG,
1589715897
uint64_t MulAmt) {
1589815898
// Don't do this is if the Xqciac extension is enabled and the MulAmt is
1589915899
// simm12.
15900-
const RISCVSubtarget &Subtarget =
15901-
DAG.getMachineFunction().getSubtarget<RISCVSubtarget>();
15900+
auto &Subtarget = DAG.getSubtarget<RISCVSubtarget>();
1590215901
if (Subtarget.hasVendorXqciac() && isInt<12>(MulAmt))
1590315902
return SDValue();
1590415903

0 commit comments

Comments
 (0)