[llvm] [RISCV][VLOPT] Allow propagation even when VL isn't VLMAX (PR #112228)
Michael Maitland via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 15 08:37:44 PDT 2024
================
@@ -31,6 +31,55 @@ using namespace llvm;
namespace {
+struct VLInfo {
+ std::variant<Register, int64_t> VL;
+
+ VLInfo(const MachineOperand &VLOp) {
+ if (VLOp.isImm())
+ VL = VLOp.getImm();
----------------
michaelmaitland wrote:
Since I removed VLInfo, this is no longer a concern.
https://github.com/llvm/llvm-project/pull/112228
More information about the llvm-commits
mailing list