- Feb 15, 2012
-
-
Andrew Trick authored
llvm-svn: 150566
-
Andrew Trick authored
llvm-svn: 150565
-
Andrew Trick authored
The llc command line options for enabling/disabling passes are local to CodeGen/Passes.cpp. This patch associates those options with standard pass IDs so they work regardless of how the target configures the passes. A target has two ways of overriding standard passes: 1) Redefine the pass pipeline (override TargetPassConfig::add%Stage) 2) Replace or suppress individiual passes with TargetPassConfig::substitutePass. In both cases, the command line options associated with the pass override the target default. For example, say a target wants to disable machine instruction scheduling by default: - The target calls disablePass(MachineSchedulerID) but otherwise does not override any TargetPassConfig methods. - Without any llc options, no scheduler is run. - With -enable-misched, the standard machine scheduler is run and honors the -misched=... flag to select the scheduler variant, which may be used for performance evaluation or testing. Sorry overridePass is ugly. I haven't thought of a better way without replacing the cl::opt framework. I hope to do that one day... I haven't figured out why CodeGen uses char& for pass IDs. AnalysisID is much easier to use and less bug prone. I'm using it wherever I can for internal implementation. Maybe later we can change the global pass ID definitions as well. llvm-svn: 150563
-
Andrew Trick authored
Added TargetPassConfig::disablePass/substitutePass as a general mechanism to override specific passes. llvm-svn: 150562
-
Lang Hames authored
llvm-svn: 150553
-
Lang Hames authored
llvm-svn: 150552
-
Pete Cooper authored
llvm-svn: 150550
-
Chad Rosier authored
llvm-svn: 150538
-
Pete Cooper authored
Stop custom lowering forr x86 DEC64m from happening if the load in the lowered sequence has more than 1 user llvm-svn: 150537
-
Chad Rosier authored
llvm-svn: 150536
-
Jakob Stoklund Olesen authored
Pretend that regmask interference ends at the 'dead' slot, even when there is other interference ending at the 'reg' slot of the same instruction. llvm-svn: 150531
-
Jakob Stoklund Olesen authored
Perform all comparisons at instruction granularity, and make sure register masks on uses count in both gaps. llvm-svn: 150530
-
Jakob Stoklund Olesen authored
Only accept register masks when looking for an 'overlapping' def. When Overlap is not set, the function searches for a proper definition of Reg. This means MI->modifiesRegister() considers register masks, but MI->definesRegister() doesn't. llvm-svn: 150529
-
Jakob Stoklund Olesen authored
When a physreg is live in to a basic block, look for any instruction in the block that clobbers the physreg. The instruction doesn't have to properly redefine the register, any overlapping clobber is OK. This slightly changes live ranges when compiling with register masks. llvm-svn: 150528
-
Jakob Stoklund Olesen authored
The old DenseMap hashed order was very confusing. llvm-svn: 150527
-
Lang Hames authored
llvm-svn: 150525
-
- Feb 14, 2012
-
-
Chad Rosier authored
llvm-svn: 150520
-
Aaron Ballman authored
Using the new external-linkage warning recently added instead of disabling all return type warnings. llvm-svn: 150512
-
Aaron Ballman authored
Patch by Matt Johnson llvm-svn: 150508
-
Bill Wendling authored
The MachO back-end needs to emit the garbage collection flags specified in the module flags. This is a WIP, so the front-end hasn't been modified to emit these flags just yet. Documentation and front-end switching to occur soon. llvm-svn: 150507
-
Lang Hames authored
llvm-svn: 150496
-
Lang Hames authored
only be live in to a block if it is the function entry point or a landing pad. llvm-svn: 150494
-
Nadav Rotem authored
that are greater than the vector element type. For example BUILD_VECTOR of type <1 x i1> with a constant i8 operand. This patch fixes the assertion. llvm-svn: 150477
-
Benjamin Kramer authored
llvm-svn: 150471
-
Bill Wendling authored
llvm-svn: 150466
-
Craig Topper authored
Move old movl vector_shuffle patterns. Not needed anymore since vector_shuffles shouldn't reach isel. llvm-svn: 150462
-
Lang Hames authored
Rename getExceptionAddressRegister() to getExceptionPointerRegister() for consistency with setExceptionPointerRegister(...). llvm-svn: 150460
-
Lang Hames authored
llvm-svn: 150457
-
Kostya Serebryany authored
llvm-svn: 150449
-
Lang Hames authored
llvm-svn: 150447
-
Lang Hames authored
llvm-svn: 150444
-
Andrew Trick authored
This folds a simple loop tail into a loop latch. It covers the common (in fortran) case of postincrement loops. It's a "free" way to expose this type of loop to downstream loop optimizations that bail out on non-canonical loops (getLoopLatch is a heavily used check). llvm-svn: 150439
-
Andrew Trick authored
llvm-svn: 150438
-
Bill Wendling authored
marking them as "live-in" into a BB ruins some invariants that the back-end tries to maintain. llvm-svn: 150437
-
Bill Wendling authored
llvm-svn: 150436
-
Lang Hames authored
llvm-svn: 150433
-
Jakob Stoklund Olesen authored
The scheduler will sometimes check the implicit-def list on instructions to properly handle pre-colored DAG edges. Also check any register mask operands for physreg clobbers. llvm-svn: 150428
-
Devang Patel authored
llvm-svn: 150425
-
- Feb 13, 2012
-
-
Dan Gohman authored
(but not of) a block pointer do not cause the block pointer to escape. This fixes rdar://10803830. llvm-svn: 150424
-
Kostya Serebryany authored
Clang patch (flags) will follow shortly. The run-time library will also follow, but not immediately. llvm-svn: 150423
-