From: Krzysztof Parzyszek Date: Fri, 19 Aug 2016 22:57:23 +0000 (+0000) Subject: Reset "undef" flag when coalescing subregister into whole register X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d95d100c285f7a0eb54845b1c4eedcde8aa95705;p=platform%2Fupstream%2Fllvm.git Reset "undef" flag when coalescing subregister into whole register llvm-svn: 279344 --- diff --git a/llvm/lib/CodeGen/RegisterCoalescer.cpp b/llvm/lib/CodeGen/RegisterCoalescer.cpp index 2d9a61b..bf7aacc 100644 --- a/llvm/lib/CodeGen/RegisterCoalescer.cpp +++ b/llvm/lib/CodeGen/RegisterCoalescer.cpp @@ -975,6 +975,7 @@ bool RegisterCoalescer::reMaterializeTrivialDef(const CoalescerPair &CP, NewRC = CommonRC; DstIdx = 0; DefMO.setSubReg(0); + DefMO.setIsUndef(false); // Only subregs can have def+undef. } } }