mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-04 03:06:28 +00:00
Fixed a typo that's causing a missing kill marker.
llvm-svn: 41893
This commit is contained in:
parent
679d7949f9
commit
0d738fff6d
@ -306,9 +306,8 @@ bool LiveVariables::HandlePhysRegKill(unsigned Reg, MachineInstr *RefMI,
|
||||
for (const unsigned *SubRegs = RegInfo->getImmediateSubRegisters(Reg);
|
||||
unsigned SubReg = *SubRegs; ++SubRegs) {
|
||||
MachineInstr *LastRef = PhysRegInfo[SubReg];
|
||||
if (LastRef != RefMI)
|
||||
SubKills.insert(SubReg);
|
||||
else if (!HandlePhysRegKill(SubReg, RefMI, SubKills))
|
||||
if (LastRef != RefMI ||
|
||||
!HandlePhysRegKill(SubReg, RefMI, SubKills))
|
||||
SubKills.insert(SubReg);
|
||||
}
|
||||
|
||||
@ -336,7 +335,7 @@ void LiveVariables::addRegisterKills(unsigned Reg, MachineInstr *MI,
|
||||
bool LiveVariables::HandlePhysRegKill(unsigned Reg, MachineInstr *RefMI) {
|
||||
SmallSet<unsigned, 4> SubKills;
|
||||
if (HandlePhysRegKill(Reg, RefMI, SubKills)) {
|
||||
addRegisterKilled(Reg, RefMI);
|
||||
addRegisterKilled(Reg, RefMI, true);
|
||||
return true;
|
||||
} else {
|
||||
// Some sub-registers are killed by another MI.
|
||||
|
15
test/CodeGen/PowerPC/2007-09-12-LiveIntervalsAssert.ll
Normal file
15
test/CodeGen/PowerPC/2007-09-12-LiveIntervalsAssert.ll
Normal file
@ -0,0 +1,15 @@
|
||||
; RUN: llvm-as < %s | llc -mtriple=powerpc64-apple-darwin
|
||||
|
||||
declare void @cxa_atexit_check_1(i8*)
|
||||
|
||||
define i32 @check_cxa_atexit(i32 (void (i8*)*, i8*, i8*)* %cxa_atexit, void (i8*)* %cxa_finalize) {
|
||||
entry:
|
||||
%tmp7 = call i32 null( void (i8*)* @cxa_atexit_check_1, i8* null, i8* null ) ; <i32> [#uses=0]
|
||||
br i1 false, label %cond_true, label %cond_next
|
||||
|
||||
cond_true: ; preds = %entry
|
||||
ret i32 0
|
||||
|
||||
cond_next: ; preds = %entry
|
||||
ret i32 0
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user