[llvm] r279344 - Reset "undef" flag when coalescing subregister into whole register

Krzysztof Parzyszek via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 19 15:57:23 PDT 2016


Author: kparzysz
Date: Fri Aug 19 17:57:23 2016
New Revision: 279344

URL: http://llvm.org/viewvc/llvm-project?rev=279344&view=rev
Log:
Reset "undef" flag when coalescing subregister into whole register

Modified:
    llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp

Modified: llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp?rev=279344&r1=279343&r2=279344&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp Fri Aug 19 17:57:23 2016
@@ -975,6 +975,7 @@ bool RegisterCoalescer::reMaterializeTri
         NewRC = CommonRC;
         DstIdx = 0;
         DefMO.setSubReg(0);
+        DefMO.setIsUndef(false); // Only subregs can have def+undef.
       }
     }
   }




More information about the llvm-commits mailing list