[PATCH] D42200: Fix RegScavenger::unprocess

David Greene via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 23 13:24:08 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL337735: Fix RegScavenger::unprocess (authored by greened, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D42200?vs=130279&id=156861#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D42200

Files:
  llvm/trunk/lib/CodeGen/RegisterScavenging.cpp


Index: llvm/trunk/lib/CodeGen/RegisterScavenging.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/RegisterScavenging.cpp
+++ llvm/trunk/lib/CodeGen/RegisterScavenging.cpp
@@ -162,8 +162,8 @@
     determineKillsAndDefs();
 
     // Commit the changes.
-    setUsed(KillRegUnits);
     setUnused(DefRegUnits);
+    setUsed(KillRegUnits);
   }
 
   if (MBBI == MBB->begin()) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42200.156861.patch
Type: text/x-patch
Size: 424 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180723/78bfc489/attachment.bin>


More information about the llvm-commits mailing list