summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Hexagon/HexagonHardwareLoops.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-02-15 18:32:25 +0000
committerEric Christopher <echristo@apple.com>2012-02-15 18:32:25 +0000
commitd9811eb7be41fcc7143168794696e3fbc7967e64 (patch)
tree3c71c1a137c9bf845ba0badd3d6e86d5406ac9ae /llvm/lib/Target/Hexagon/HexagonHardwareLoops.cpp
parent99571325f1d8d709370615621674bbeb3fc007ac (diff)
downloadbcm5719-llvm-d9811eb7be41fcc7143168794696e3fbc7967e64.tar.gz
bcm5719-llvm-d9811eb7be41fcc7143168794696e3fbc7967e64.zip
Revert "Optimize redundant sign extends and negation of predicates"
as it's breaking the build. This reverts commit 11241abca5e2a313412fed594bb9d9fa2a2057fb. llvm-svn: 150604
Diffstat (limited to 'llvm/lib/Target/Hexagon/HexagonHardwareLoops.cpp')
-rw-r--r--llvm/lib/Target/Hexagon/HexagonHardwareLoops.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonHardwareLoops.cpp b/llvm/lib/Target/Hexagon/HexagonHardwareLoops.cpp
index 04ea4edbf8b..c1abc4a8f7d 100644
--- a/llvm/lib/Target/Hexagon/HexagonHardwareLoops.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonHardwareLoops.cpp
@@ -517,8 +517,8 @@ bool HexagonHardwareLoops::convertToHardwareLoop(MachineLoop *L) {
// The loop ends with either:
// - a conditional branch followed by an unconditional branch, or
// - a conditional branch to the loop start.
- if (LastI->getOpcode() == Hexagon::JMP_c ||
- LastI->getOpcode() == Hexagon::JMP_cNot) {
+ if (LastI->getOpcode() == Hexagon::JMP_Pred ||
+ LastI->getOpcode() == Hexagon::JMP_PredNot) {
// delete one and change/add an uncond. branch to out of the loop
MachineBasicBlock *BranchTarget = LastI->getOperand(1).getMBB();
LastI = LastMBB->erase(LastI);
OpenPOWER on IntegriCloud