[llvm] [RISCV][MC] Implement evaluateBranch for auipc+jalr pairs (PR #65480)
Alexander Richardson via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 29 08:40:42 PDT 2023
================
@@ -1298,6 +1303,7 @@ static void collectLocalBranchTargets(
!Labels.count(Target) &&
!(STI->getTargetTriple().isPPC() && Target == Index))
Labels[Target] = ("L" + Twine(LabelCount++)).str();
+ MIA->updateState(Inst, Index);
----------------
arichardson wrote:
Don't we also need to reset the state if we failed to disassemble an instruction since it could be an instruction that is not yet supported?
https://github.com/llvm/llvm-project/pull/65480
More information about the llvm-commits
mailing list