[llvm] 0533b6e - [RISCV] Remove a use of getMinVLen in favor of getRealMinVLen
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 27 12:53:02 PDT 2022
Author: Philip Reames
Date: 2022-06-27T12:52:24-07:00
New Revision: 0533b6e2f605f165ecfdf4ba4736e3ccf0075247
URL: https://github.com/llvm/llvm-project/commit/0533b6e2f605f165ecfdf4ba4736e3ccf0075247
DIFF: https://github.com/llvm/llvm-project/commit/0533b6e2f605f165ecfdf4ba4736e3ccf0075247.diff
LOG: [RISCV] Remove a use of getMinVLen in favor of getRealMinVLen
The later is possibly greater than the former, and thus the assert was overly strong when a wider VLEN was set at the command line.
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 04d3e9ff31b1..0205805fbb7b 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -3185,7 +3185,7 @@ SDValue RISCVTargetLowering::LowerOperation(SDValue Op,
// minimum size. e.g. <vscale x 2 x i32>. VLENB is in bytes so we calculate
// vscale as VLENB / 8.
static_assert(RISCV::RVVBitsPerBlock == 64, "Unexpected bits per block!");
- if (Subtarget.getMinVLen() < RISCV::RVVBitsPerBlock)
+ if (Subtarget.getRealMinVLen() < RISCV::RVVBitsPerBlock)
report_fatal_error("Support for VLEN==32 is incomplete.");
// We assume VLENB is a multiple of 8. We manually choose the best shift
// here because SimplifyDemandedBits isn't always able to simplify it.
More information about the llvm-commits
mailing list