Skip to content

Commit

Permalink
Revert "[TwoAddressInstructionPass] Update existing physreg live inte…
Browse files Browse the repository at this point in the history
…rvals"

This reverts commit ec0e1e8.

It was pushed by mistake.
  • Loading branch information
jayfoad committed Nov 5, 2021
1 parent c93bf53 commit 0321bd6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 15 deletions.
16 changes: 4 additions & 12 deletions llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
Expand Up @@ -1539,23 +1539,15 @@ TwoAddressInstructionPass::processTiedPairs(MachineInstr *MI,
if (LIS) {
LastCopyIdx = LIS->InsertMachineInstrInMaps(*PrevMI).getRegSlot();

SlotIndex endIdx =
LIS->getInstructionIndex(*MI).getRegSlot(IsEarlyClobber);
if (RegA.isVirtual()) {
LiveInterval &LI = LIS->getInterval(RegA);
VNInfo *VNI = LI.getNextValue(LastCopyIdx, LIS->getVNInfoAllocator());
LI.addSegment(LiveRange::Segment(LastCopyIdx, endIdx, VNI));
SlotIndex endIdx =
LIS->getInstructionIndex(*MI).getRegSlot(IsEarlyClobber);
LI.addSegment(LiveInterval::Segment(LastCopyIdx, endIdx, VNI));
for (auto &S : LI.subranges()) {
VNI = S.getNextValue(LastCopyIdx, LIS->getVNInfoAllocator());
S.addSegment(LiveRange::Segment(LastCopyIdx, endIdx, VNI));
}
} else {
for (MCRegUnitIterator Unit(RegA, TRI); Unit.isValid(); ++Unit) {
if (LiveRange *LR = LIS->getCachedRegUnit(*Unit)) {
VNInfo *VNI =
LR->getNextValue(LastCopyIdx, LIS->getVNInfoAllocator());
LR->addSegment(LiveRange::Segment(LastCopyIdx, endIdx, VNI));
}
S.addSegment(LiveInterval::Segment(LastCopyIdx, endIdx, VNI));
}
}
}
Expand Down
1 change: 0 additions & 1 deletion llvm/test/CodeGen/ARM/inlineasm-operand-implicit-cast.ll
@@ -1,5 +1,4 @@
; RUN: llc -mtriple armv7-arm-linux-gnueabihf -O2 -mcpu=cortex-a7 < %s | FileCheck %s
; RUN: llc -mtriple armv7-arm-linux-gnueabihf -O2 -mcpu=cortex-a7 -early-live-intervals < %s | FileCheck %s

%struct.twofloat = type { float, float }
%struct.twodouble = type { double, double }
Expand Down
1 change: 0 additions & 1 deletion llvm/test/CodeGen/Thumb/emergency-spill-slot.ll
@@ -1,6 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s | FileCheck %s
; RUN: llc -early-live-intervals < %s | FileCheck %s
target triple = "thumbv6m-unknown-unknown-eabi"

define void @vla_emergency_spill(i32 %n) {
Expand Down
1 change: 0 additions & 1 deletion llvm/test/CodeGen/X86/inline-asm-A-constraint.ll
@@ -1,5 +1,4 @@
; RUN: llc -mtriple=x86_64-- < %s | FileCheck %s
; RUN: llc -mtriple=x86_64-- -early-live-intervals < %s | FileCheck %s

target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64--"
Expand Down

0 comments on commit 0321bd6

Please sign in to comment.