mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-30 02:25:19 +00:00
Instead of using isDummyPhiInstr, we just compare the opcode with V9::PHI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15906 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include "llvm/Target/TargetMachine.h"
|
||||
#include "../../Target/SparcV9/MachineCodeForInstruction.h"
|
||||
#include "../../Target/SparcV9/SparcV9RegInfo.h"
|
||||
#include "../../Target/SparcV9/SparcV9InstrInfo.h"
|
||||
#include "Support/STLExtras.h"
|
||||
#include <iostream>
|
||||
|
||||
@@ -561,7 +562,7 @@ void SchedGraph::buildNodesForBB(const TargetMachine& target,
|
||||
unsigned i = 0;
|
||||
for (MachineBasicBlock::iterator I = MBB.begin(), E = MBB.end(); I != E;
|
||||
++I, ++i)
|
||||
if (!mii.isDummyPhiInstr(I->getOpcode())) {
|
||||
if (I->getOpcode() != V9::PHI) {
|
||||
SchedGraphNode* node = new SchedGraphNode(getNumNodes(), &MBB, i, target);
|
||||
noteGraphNodeForInstr(I, node);
|
||||
|
||||
|
Reference in New Issue
Block a user