[llvm-commits] CVS: llvm/lib/CodeGen/InstrSched/SchedGraph.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Wed Aug 18 13:04:37 PDT 2004



Changes in directory llvm/lib/CodeGen/InstrSched:

SchedGraph.cpp updated: 1.65 -> 1.66
---
Log message:

Instead of using isDummyPhiInstr, we just compare the opcode with V9::PHI.


---
Diffs of the changes:  (+2 -1)

Index: llvm/lib/CodeGen/InstrSched/SchedGraph.cpp
diff -u llvm/lib/CodeGen/InstrSched/SchedGraph.cpp:1.65 llvm/lib/CodeGen/InstrSched/SchedGraph.cpp:1.66
--- llvm/lib/CodeGen/InstrSched/SchedGraph.cpp:1.65	Mon Aug 16 16:55:01 2004
+++ llvm/lib/CodeGen/InstrSched/SchedGraph.cpp	Wed Aug 18 15:04:23 2004
@@ -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 @@
   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);
       






More information about the llvm-commits mailing list