diff --git a/llvm/lib/CodeGen/LiveIntervals.cpp b/llvm/lib/CodeGen/LiveIntervals.cpp --- a/llvm/lib/CodeGen/LiveIntervals.cpp +++ b/llvm/lib/CodeGen/LiveIntervals.cpp @@ -199,11 +199,9 @@ if (MRI->reg_nodbg_empty(Reg)) continue; LiveInterval &LI = createEmptyInterval(Reg); - bool NeedSplit = computeVirtRegInterval(LI); - if (NeedSplit) { - SmallVector SplitLIs; - splitSeparateComponents(LI, SplitLIs); - } + computeVirtRegInterval(LI); + SmallVector SplitLIs; + splitSeparateComponents(LI, SplitLIs); } }