summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-01-25 19:06:45 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-02-01 16:27:42 +0000
commit32586cdf9be9dfce3ee23d3a7b69111ba55f7149 (patch)
tree9e736ba7b04b3461eb1ef363289b019156d82339
parent141027f57419b650bd2893194d5c5a10db41ba09 (diff)
XXX: Always remove JUMP
-rw-r--r--lib/Target/R600/R600LowerControlFlow.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Target/R600/R600LowerControlFlow.cpp b/lib/Target/R600/R600LowerControlFlow.cpp
index c7f6db7edd8..098e1c26580 100644
--- a/lib/Target/R600/R600LowerControlFlow.cpp
+++ b/lib/Target/R600/R600LowerControlFlow.cpp
@@ -363,12 +363,12 @@ bool R600LowerControlFlowPass::runOnMachineFunction(MachineFunction &MF) {
MachineInstr &PrevInst = *(++I);
PrevInst.dump();
BranchBlock->front().dump();
- if (PrevInst.getOpcode() == AMDGPU::R600_IF && (
- BranchBlock->front().getOpcode() == AMDGPU::R600_ENDIF ||
- BranchBlock->front().getOpcode() == AMDGPU::R600_ELSE ||
- BranchBlock->front().getOpcode() == AMDGPU::R600_ELSEBREAK) &&
- BranchBlock->front().getOperand(1).getReg() ==
- PrevInst.getOperand(1).getReg()) {
+// if (PrevInst.getOpcode() == AMDGPU::R600_IF && (
+// BranchBlock->front().getOpcode() == AMDGPU::R600_ENDIF ||
+// BranchBlock->front().getOpcode() == AMDGPU::R600_ELSE ||
+// BranchBlock->front().getOpcode() == AMDGPU::R600_ELSEBREAK) &&
+// BranchBlock->front().getOperand(1).getReg() ==
+// PrevInst.getOperand(1).getReg()) {
// Delete the JUMP instruction when we see a sequence like this:
// BB#0:
// ...
@@ -386,7 +386,7 @@ bool R600LowerControlFlowPass::runOnMachineFunction(MachineFunction &MF) {
}
MI.eraseFromParent();
Next = MBB.rbegin();
- }
+// }
}
break;
}