Enable arm jumpt table adjustment.
authorJim Grosbach <grosbach@apple.com>
Tue, 17 Nov 2009 21:24:11 +0000 (21:24 +0000)
committerJim Grosbach <grosbach@apple.com>
Tue, 17 Nov 2009 21:24:11 +0000 (21:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89143 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMConstantIslandPass.cpp
test/CodeGen/Thumb2/thumb2-jtb.ll
test/CodeGen/Thumb2/thumb2-tbh.ll

index 734e33d2e6efbd662b285bb33da78c0ffff68f09..d22c43afc5f28eb4e0d872bf2f67e58855e7e2a0 100644 (file)
@@ -48,7 +48,7 @@ STATISTIC(NumJTInserted, "Number of jump table intermediate blocks inserted");
 
 
 static cl::opt<bool>
-AdjustJumpTableBlocks("arm-adjust-jump-tables", cl::Hidden, cl::init(false),
+AdjustJumpTableBlocks("arm-adjust-jump-tables", cl::Hidden, cl::init(true),
           cl::desc("Adjust basic block layout to better use TB[BH]"));
 
 namespace {
index 7d093ecce201af820aba8a923ad492309bf0da61..f5a56e5ace084113280979535b24d978c989144c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=thumb -mattr=+thumb2 | not grep tbb
+; RUN: llc < %s -march=thumb -mattr=+thumb2 -arm-adjust-jump-tables=0 | not grep tbb
 
 ; Do not use tbb / tbh if any destination is before the jumptable.
 ; rdar://7102917
index 916d4679994538e587151857beada520b11dc1c2..2cf1d6a2afd3db1c7ee8b1ccae88e719d6d1282e 100644 (file)
@@ -1,7 +1,6 @@
 ; RUN: llc < %s -mtriple=thumbv7-apple-darwin -relocation-model=pic | FileCheck %s
 
 ; Thumb2 target should reorder the bb's in order to use tbb / tbh.
-; XFAIL: *
 
        %struct.R_flstr = type { i32, i32, i8* }
        %struct._T_tstr = type { i32, %struct.R_flstr*, %struct._T_tstr* }