From d95d100c285f7a0eb54845b1c4eedcde8aa95705 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Fri, 19 Aug 2016 22:57:23 +0000 Subject: [PATCH] Reset "undef" flag when coalescing subregister into whole register llvm-svn: 279344 --- llvm/lib/CodeGen/RegisterCoalescer.cpp | 1 + 1 file changed, 1 insertion(+) 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. } } } -- 2.7.4