[llvm] [RISCV] Support postRA vsetvl insertion pass (PR #70549)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 30 23:08:11 PDT 2024
================
@@ -567,10 +606,13 @@ class VSETVLIInfo {
}
bool hasSameAVL(const VSETVLIInfo &Other) const {
- if (hasAVLReg() && Other.hasAVLReg())
+ if (hasAVLRegDefMI() && Other.hasAVLRegDefMI())
return getAVLDefMI().isIdenticalTo(Other.getAVLDefMI()) &&
getAVLReg() == Other.getAVLReg();
+ if (hasAVLReg() && Other.hasAVLReg())
+ return getAVLReg() == Other.getAVLReg();
----------------
lukel97 wrote:
If we have a register where there's no unique definition, i.e. we don't have a def MI, then are able to compare it against another register?
For these cases does it work if we set the state to Unknown?
https://github.com/llvm/llvm-project/pull/70549
More information about the llvm-commits
mailing list