From fc7fa3121162e2b50b308fbc2945c1082450b107 Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Thu, 17 Jun 2004 22:33:57 +0000 Subject: [PATCH] Recognize more branches. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14207 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Sparc/DelaySlotFiller.cpp | 11 +++++++++++ lib/Target/SparcV8/DelaySlotFiller.cpp | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/lib/Target/Sparc/DelaySlotFiller.cpp b/lib/Target/Sparc/DelaySlotFiller.cpp index 10449ad5246..af9b25c6d09 100644 --- a/lib/Target/Sparc/DelaySlotFiller.cpp +++ b/lib/Target/Sparc/DelaySlotFiller.cpp @@ -54,6 +54,17 @@ FunctionPass *llvm::createSparcV8DelaySlotFillerPass (TargetMachine &tm) { static bool hasDelaySlot (unsigned Opcode) { switch (Opcode) { + case V8::BA: + case V8::BCC: + case V8::BCS: + case V8::BE: + case V8::BG: + case V8::BGE: + case V8::BGU: + case V8::BL: + case V8::BLE: + case V8::BLEU: + case V8::BNE: case V8::CALL: case V8::RETL: return true; diff --git a/lib/Target/SparcV8/DelaySlotFiller.cpp b/lib/Target/SparcV8/DelaySlotFiller.cpp index 10449ad5246..af9b25c6d09 100644 --- a/lib/Target/SparcV8/DelaySlotFiller.cpp +++ b/lib/Target/SparcV8/DelaySlotFiller.cpp @@ -54,6 +54,17 @@ FunctionPass *llvm::createSparcV8DelaySlotFillerPass (TargetMachine &tm) { static bool hasDelaySlot (unsigned Opcode) { switch (Opcode) { + case V8::BA: + case V8::BCC: + case V8::BCS: + case V8::BE: + case V8::BG: + case V8::BGE: + case V8::BGU: + case V8::BL: + case V8::BLE: + case V8::BLEU: + case V8::BNE: case V8::CALL: case V8::RETL: return true; -- 2.34.1