[llvm] [RISCV][VLOPT] Compute demanded VLs up front. NFC (PR #124530)
Michael Maitland via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 27 07:14:33 PST 2025
================
@@ -50,12 +51,15 @@ class RISCVVLOptimizer : public MachineFunctionPass {
StringRef getPassName() const override { return PASS_NAME; }
private:
- std::optional<MachineOperand> getMinimumVLForUser(MachineOperand &UserOp);
- /// Returns the largest common VL MachineOperand that may be used to optimize
- /// MI. Returns std::nullopt if it failed to find a suitable VL.
- std::optional<MachineOperand> checkUsers(MachineInstr &MI);
+ MachineOperand getMinimumVLForUser(MachineOperand &UserOp);
+ /// Computes the VL of \p MI that is actually used by its users.
----------------
michaelmaitland wrote:
`largest common VL`?
https://github.com/llvm/llvm-project/pull/124530
More information about the llvm-commits
mailing list