Index: src/IceRegAlloc.cpp |
diff --git a/src/IceRegAlloc.cpp b/src/IceRegAlloc.cpp |
index 8a1656bb1f6c45983f9950c00eba425994d18dd0..bd4ca05a150966f32b0c285e34f5fbd78f484d93 100644 |
--- a/src/IceRegAlloc.cpp |
+++ b/src/IceRegAlloc.cpp |
@@ -268,9 +268,7 @@ void LinearScan::scan(const llvm::SmallBitVector &RegMaskFull) { |
VariablesMetadata *VMetadata = Func->getVMetadata(); |
// Build a LiveRange representing the Kills list. |
- LiveRange KillsRange; |
- for (InstNumberT I : Kills) |
- KillsRange.addSegment(I, I); |
+ LiveRange KillsRange(Kills); |
KillsRange.untrim(); |
// RegUses[I] is the number of live ranges (variables) that register |