mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-16 14:31:59 +00:00
In InsertFPRegKills(), use the machine-CFG itself rather than the
LLVM CFG when trying to find the successors of BB. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13212 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ea9ca67304
commit
235aa5eba7
@ -743,9 +743,9 @@ void ISel::InsertFPRegKills() {
|
|||||||
// If we haven't found an FP register use or def in this basic block, check
|
// If we haven't found an FP register use or def in this basic block, check
|
||||||
// to see if any of our successors has an FP PHI node, which will cause a
|
// to see if any of our successors has an FP PHI node, which will cause a
|
||||||
// copy to be inserted into this block.
|
// copy to be inserted into this block.
|
||||||
for (succ_const_iterator SI = succ_begin(BB->getBasicBlock()),
|
for (MachineBasicBlock::const_succ_iterator SI = BB->succ_begin(),
|
||||||
E = succ_end(BB->getBasicBlock()); SI != E; ++SI) {
|
SE = BB->succ_end(); SI != SE; ++SI) {
|
||||||
MachineBasicBlock *SBB = MBBMap[*SI];
|
MachineBasicBlock *SBB = *SI;
|
||||||
for (MachineBasicBlock::iterator I = SBB->begin();
|
for (MachineBasicBlock::iterator I = SBB->begin();
|
||||||
I != SBB->end() && I->getOpcode() == X86::PHI; ++I) {
|
I != SBB->end() && I->getOpcode() == X86::PHI; ++I) {
|
||||||
if (RegMap.getRegClass(I->getOperand(0).getReg())->getSize() == 10)
|
if (RegMap.getRegClass(I->getOperand(0).getReg())->getSize() == 10)
|
||||||
|
@ -743,9 +743,9 @@ void ISel::InsertFPRegKills() {
|
|||||||
// If we haven't found an FP register use or def in this basic block, check
|
// If we haven't found an FP register use or def in this basic block, check
|
||||||
// to see if any of our successors has an FP PHI node, which will cause a
|
// to see if any of our successors has an FP PHI node, which will cause a
|
||||||
// copy to be inserted into this block.
|
// copy to be inserted into this block.
|
||||||
for (succ_const_iterator SI = succ_begin(BB->getBasicBlock()),
|
for (MachineBasicBlock::const_succ_iterator SI = BB->succ_begin(),
|
||||||
E = succ_end(BB->getBasicBlock()); SI != E; ++SI) {
|
SE = BB->succ_end(); SI != SE; ++SI) {
|
||||||
MachineBasicBlock *SBB = MBBMap[*SI];
|
MachineBasicBlock *SBB = *SI;
|
||||||
for (MachineBasicBlock::iterator I = SBB->begin();
|
for (MachineBasicBlock::iterator I = SBB->begin();
|
||||||
I != SBB->end() && I->getOpcode() == X86::PHI; ++I) {
|
I != SBB->end() && I->getOpcode() == X86::PHI; ++I) {
|
||||||
if (RegMap.getRegClass(I->getOperand(0).getReg())->getSize() == 10)
|
if (RegMap.getRegClass(I->getOperand(0).getReg())->getSize() == 10)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user