Enable GlobalMerge on darwin.

llvm-svn: 128183
This commit is contained in:
Devang Patel 2011-03-23 23:34:19 +00:00
parent c7ca640529
commit abc77347a7
3 changed files with 1 additions and 8 deletions

View File

@ -53,7 +53,6 @@
#define DEBUG_TYPE "arm-global-merge"
#include "ARM.h"
#include "ARMTargetMachine.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/Attributes.h"
#include "llvm/Constants.h"
@ -168,11 +167,6 @@ bool ARMGlobalMerge::doInitialization(Module &M) {
unsigned MaxOffset = TLI->getMaximalGlobalOffset();
bool Changed = false;
// Disable this pass on darwin. The debugger is not yet ready to extract
// variable's info from a merged global.
if (TLI->getTargetMachine().getSubtarget<ARMSubtarget>().isTargetDarwin())
return false;
// Grab all non-const globals.
for (Module::global_iterator I = M.global_begin(),
E = M.global_end(); I != E; ++I) {

View File

@ -1,5 +1,5 @@
; RUN: llc < %s | FileCheck %s
; XFAIL: *
target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:32:64-v128:32:128-a0:0:32-n32"
target triple = "thumbv7-apple-darwin10"

View File

@ -1,5 +1,4 @@
; RUN: llc < %s -mtriple=thumb-apple-darwin | FileCheck %s
; XFAIL: *
; Test the ARMGlobalMerge pass. Use -march=thumb because it has a small
; value for the maximum offset (127).