aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/RenderMachineFunction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/RenderMachineFunction.cpp')
-rw-r--r--lib/CodeGen/RenderMachineFunction.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/CodeGen/RenderMachineFunction.cpp b/lib/CodeGen/RenderMachineFunction.cpp
index 585bf04..184b06e 100644
--- a/lib/CodeGen/RenderMachineFunction.cpp
+++ b/lib/CodeGen/RenderMachineFunction.cpp
@@ -551,11 +551,9 @@ namespace llvm {
return AliveStack;
}
} else {
- if (i.getSlot() == SlotIndex::DEF &&
- mi->definesRegister(li->reg, tri)) {
+ if (i.isDef() && mi->definesRegister(li->reg, tri)) {
return Defined;
- } else if (i.getSlot() == SlotIndex::USE &&
- mi->readsRegister(li->reg)) {
+ } else if (i.isUse() && mi->readsRegister(li->reg)) {
return Used;
} else {
if (vrm == 0 ||
@@ -771,7 +769,7 @@ namespace llvm {
os << indent + s(2) << "<tr height=6ex>\n";
// Render the code column.
- if (i.getSlot() == SlotIndex::LOAD) {
+ if (i.isLoad()) {
MachineBasicBlock *mbb = sis->getMBBFromIndex(i);
mi = sis->getInstructionFromIndex(i);