aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-06-17 22:33:57 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-06-17 22:33:57 +0000
commitfc7fa3121162e2b50b308fbc2945c1082450b107 (patch)
tree7ed29bbb384ab0c4cce2963f72fe4339c3bdefc3 /lib/Target
parentafe16e174264e3902bf376d7603b0cba2a0659bf (diff)
downloadexternal_llvm-fc7fa3121162e2b50b308fbc2945c1082450b107.zip
external_llvm-fc7fa3121162e2b50b308fbc2945c1082450b107.tar.gz
external_llvm-fc7fa3121162e2b50b308fbc2945c1082450b107.tar.bz2
Recognize more branches.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14207 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/Sparc/DelaySlotFiller.cpp11
-rw-r--r--lib/Target/SparcV8/DelaySlotFiller.cpp11
2 files changed, 22 insertions, 0 deletions
diff --git a/lib/Target/Sparc/DelaySlotFiller.cpp b/lib/Target/Sparc/DelaySlotFiller.cpp
index 10449ad..af9b25c 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 10449ad..af9b25c 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;