[llvm] c5be6a8 - [RISCV] Use X0 in place of VLMaxSentinel in lowering.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 11 23:30:08 PDT 2022
Author: Craig Topper
Date: 2022-07-11T23:29:04-07:00
New Revision: c5be6a8308115636602a7377f5029bb459a8a5a8
URL: https://github.com/llvm/llvm-project/commit/c5be6a8308115636602a7377f5029bb459a8a5a8
DIFF: https://github.com/llvm/llvm-project/commit/c5be6a8308115636602a7377f5029bb459a8a5a8.diff
LOG: [RISCV] Use X0 in place of VLMaxSentinel in lowering.
I thought I had already fixed all of these, but I guess I missed one.
Added:
Modified:
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
index 317fb9bcbb95b..0ee88bfba2709 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -5783,8 +5783,7 @@ SDValue RISCVTargetLowering::lowerVECTOR_SPLICE(SDValue Op,
DAG.getNode(RISCVISD::VSLIDEDOWN_VL, DL, VecVT, DAG.getUNDEF(VecVT), V1,
DownOffset, TrueMask, UpOffset);
return DAG.getNode(RISCVISD::VSLIDEUP_VL, DL, VecVT, SlideDown, V2, UpOffset,
- TrueMask,
- DAG.getTargetConstant(RISCV::VLMaxSentinel, DL, XLenVT));
+ TrueMask, DAG.getRegister(RISCV::X0, XLenVT));
}
SDValue
More information about the llvm-commits
mailing list