[PATCH] D158634: [RISCV] Fix wrong operand being used for VL in shift combine
Luke Lau via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 23 09:44:36 PDT 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG06d3ee9603b6: [RISCV] Fix wrong operand being used for VL in shift combine (authored by luke).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158634/new/
https://reviews.llvm.org/D158634
Files:
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
Index: llvm/lib/Target/RISCV/RISCVISelLowering.cpp
===================================================================
--- llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -13730,7 +13730,7 @@
if (ShAmt.getOpcode() == RISCVISD::SPLAT_VECTOR_SPLIT_I64_VL) {
// We don't need the upper 32 bits of a 64-bit element for a shift amount.
SDLoc DL(N);
- SDValue VL = N->getOperand(3);
+ SDValue VL = N->getOperand(4);
EVT VT = N->getValueType(0);
ShAmt = DAG.getNode(RISCVISD::VMV_V_X_VL, DL, VT, DAG.getUNDEF(VT),
ShAmt.getOperand(1), VL);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158634.552766.patch
Type: text/x-patch
Size: 650 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230823/955f1155/attachment-0001.bin>
More information about the llvm-commits
mailing list