[llvm] [BOLT] Simplify RAState helpers (NFCI) (PR #162820)
Peter Waller via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 28 04:20:11 PDT 2025
================
@@ -81,10 +86,15 @@ void InsertNegateRAState::coverFunctionFragmentStart(BinaryFunction &BF,
});
// If a function is already split in the input, the first FF can also start
// with Signed state. This covers that scenario as well.
- if (BC.MIB->isRASigned(*((*FirstNonEmpty)->begin()))) {
+ auto RAState = BC.MIB->getRAState(*(*FirstNonEmpty)->begin());
+ if (!RAState) {
+ BC.errs() << "BOLT-ERROR: unknown RAState after inferUnknownStates "
+ << " in function " << BF.getPrintName() << "\n";
+ return;
----------------
peterwaller-arm wrote:
Also returns without obvious "fatal" flow control, if intended to be fatal.
https://github.com/llvm/llvm-project/pull/162820
More information about the llvm-commits
mailing list