commit | 3008594cd4eedbd9e59e6df9c72af4761279e642 | [log] [tgz] |
---|---|---|
author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | Wed Jun 28 15:46:16 2017 +0000 |
committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | Wed Jun 28 15:46:16 2017 +0000 |
tree | 7f65c438184a89305dcb858731c0758a83840903 | |
parent | 320390bab894c287bbbf2b1949752bcb152b37a2 [diff] [blame] |
Missed a check for UndefVI in r306466 llvm-svn: 306553
diff --git a/llvm/lib/CodeGen/LiveRangeCalc.cpp b/llvm/lib/CodeGen/LiveRangeCalc.cpp index 2455a71..71eb81d 100644 --- a/llvm/lib/CodeGen/LiveRangeCalc.cpp +++ b/llvm/lib/CodeGen/LiveRangeCalc.cpp
@@ -412,7 +412,7 @@ } LiveIn.clear(); - FoundUndef |= (TheVNI == nullptr); + FoundUndef |= (TheVNI == nullptr || TheVNI == &UndefVNI); if (Undefs.size() > 0 && FoundUndef) UniqueVNI = false;