[llvm] RegAllocFast: Fix verifier errors after assigning to reserved registers (PR #128155)

Christudasan Devadasan via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 21 06:49:08 PST 2025


================
@@ -598,6 +598,9 @@ void VirtRegRewriter::rewrite() {
   SmallVector<Register, 8> SuperDefs;
   SmallVector<Register, 8> SuperKills;
 
+  const bool IsValidAlloc = !MF->getProperties().hasProperty(
----------------
cdevadas wrote:

Nit: You can avoid the double negation if the variable name is changed to `IsFailedAlloc.`

https://github.com/llvm/llvm-project/pull/128155


More information about the llvm-commits mailing list