[llvm] IPRA: Fixes an IPRA compilation failure. (PR #196928)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 14 19:06:40 PDT 2026
================
@@ -568,6 +568,14 @@ class LLVM_ABI TargetRegisterInfo : public MCRegisterInfo {
return {};
}
+ /// Return true if register usage info should not be stored for this function
+ /// (e.g. x87 FP stack usage makes precise tracking unreliable). When true,
+ /// RegUsageInfoCollector will skip storing the RegMask.
+ virtual bool shouldSkipRegUsageInfo(const MachineFunction &MF) const {
----------------
vigbalu wrote:
@arsenm,
The existing RegMask includes all x87 registers, but IPRA modifies the RegMask based on actual register usage, which causes this issue. This patch now uses the existing target API to handle this scenario.
https://github.com/llvm/llvm-project/pull/196928
More information about the llvm-commits
mailing list