[llvm] VirtRegRewriter: Fix verifier errors after regalloc failures (PR #128280)
Christudasan Devadasan via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 22 00:27:37 PST 2025
================
@@ -598,6 +598,9 @@ void VirtRegRewriter::rewrite() {
SmallVector<Register, 8> SuperDefs;
SmallVector<Register, 8> SuperKills;
+ const bool IsValidAlloc = !MF->getProperties().hasProperty(
+ MachineFunctionProperties::Property::FailedRegAlloc);
+
----------------
cdevadas wrote:
```suggestion
const bool IsFailedAlloc = !MF->getProperties().hasProperty(
MachineFunctionProperties::Property::FailedRegAlloc);
```
https://github.com/llvm/llvm-project/pull/128280
More information about the llvm-commits
mailing list