- Apr 08, 2011
-
-
Devang Patel authored
If lower bound is more then upper bound then consider it is an unbounded array. An array is unbounded if non-zero lower bound is same as upper bound. If lower bound and upper bound are zero than array has one element. llvm-svn: 129156
-
Evan Cheng authored
Change -arm-trap-func= into a non-arm specific option. Now Intrinsic::trap is lowered into a call to the specified trap function at sdisel time. llvm-svn: 129152
-
Nick Lewycky authored
of { i32, void ()* }. Teach the verifier to verify that, deleting copies of checks strewn about. llvm-svn: 129128
-
- Apr 07, 2011
-
-
Andrew Trick authored
induction variable. The preRA scheduler is unaware of induction vars, so we look for potential "virtual register cycles" instead. Fixes <rdar://problem/8946719> Bad scheduling prevents coalescing llvm-svn: 129100
-
Jakob Stoklund Olesen authored
PHI values may be deleted, causing the flags to be wrong. This fixes PR9616. llvm-svn: 129092
-
Jakob Stoklund Olesen authored
llvm-svn: 129081
-
Jakob Stoklund Olesen authored
llvm-svn: 129080
-
Jakob Stoklund Olesen authored
llvm-svn: 129079
-
-
- Apr 06, 2011
-
-
Jakob Stoklund Olesen authored
llvm-svn: 129030
-
Jakob Stoklund Olesen authored
Without any positive bias, there is nothing for the spill placer to to. It will spill everywhere. llvm-svn: 129029
-
Jakob Stoklund Olesen authored
If there are no positive nodes, the algorithm can be aborted early. llvm-svn: 129021
-
Jakob Stoklund Olesen authored
This will allow us to abort the algorithm early if it is determined to be futile. llvm-svn: 129020
-
Jakob Stoklund Olesen authored
llvm-svn: 128986
-
Jakob Stoklund Olesen authored
About 90% of the relevant blocks are live-through without uses, and the only information required about them is their number. This saves memory and enables later optimizations that need to look at only the use-blocks. llvm-svn: 128985
-
Jakob Stoklund Olesen authored
llvm-svn: 128963
-
Jakob Stoklund Olesen authored
llvm-svn: 128962
-
Jakob Stoklund Olesen authored
Treat the landing pad as a normal successor when that happens. llvm-svn: 128961
-
Devang Patel authored
llvm-svn: 128947
-
- Apr 05, 2011
-
-
Jakob Stoklund Olesen authored
llvm-svn: 128935
-
Devang Patel authored
llvm-svn: 128929
-
Bob Wilson authored
of a basic block. llvm-svn: 128925
-
Jakob Stoklund Olesen authored
When dead code elimination removes all but one use, try to fold the single def into the remaining use. Rematerialization can leave single-use loads behind that we might as well fold whenever possible. llvm-svn: 128918
-
Devang Patel authored
llvm-svn: 128914
-
Jakob Stoklund Olesen authored
There can be multiple defs for a single virtual register when they are defining sub-registers. The missing <dead> flag was stopping the inline spiller from eliminating dead code after rematerialization. llvm-svn: 128888
-
Rafael Espindola authored
llvm-svn: 128887
-
Jakob Stoklund Olesen authored
This allows us to always keep the smaller slot for an instruction which is what we want when a register has early clobber defines. Drop the UsingInstrs set and the UsingBlocks map. They are no longer needed. llvm-svn: 128886
-
Jakob Stoklund Olesen authored
llvm-svn: 128875
-
Jakob Stoklund Olesen authored
inlined path for the common case. Most basic blocks don't contain a call that may throw, so the last split point os simply the first terminator. llvm-svn: 128874
-
Bill Wendling authored
It needed to be moved closer to the setjmp statement, because the code directly after the setjmp needs to know about values that are on the stack. Also, the 'bitcast' of the function context was causing a dead load. This wouldn't be too horrible, except that at -O0 it wasn't optimized out, and because it wasn't using the correct base pointer (if there is a VLA), it would try to access a value from a garbage address. <rdar://problem/9130540> llvm-svn: 128873
-
Stuart Hastings authored
llvm-svn: 128868
-
- Apr 04, 2011
-
-
Jakob Stoklund Olesen authored
When a virtual register has a single value that is defined as a copy of a reserved register, permit that copy to be joined. These virtual register are usually copies of the stack pointer: %vreg75<def> = COPY %ESP; GR32:%vreg75 MOV32mr %vreg75, 1, %noreg, 0, %noreg, %vreg74<kill> MOV32mi %vreg75, 1, %noreg, 8, %noreg, 0 MOV32mi %vreg75<kill>, 1, %noreg, 4, %noreg, 0 CALLpcrel32 ... Coalescing these virtual registers early decreases register pressure. Previously, they were coalesced by RALinScan::attemptTrivialCoalescing after register allocation was completed. The lower register pressure causes the mcinst-lowering-cmp0.ll test case to fail because it depends on linear scan spilling a particular register. I am deleting 2008-08-05-SpillerBug.ll because it is counting the number of instructions emitted, and its revision history shows the 'correct' count being edited many times. llvm-svn: 128845
-
Jakob Stoklund Olesen authored
llvm-svn: 128844
-
Jakob Stoklund Olesen authored
llvm-svn: 128821
-
Jakob Stoklund Olesen authored
llvm-svn: 128820
-
- Apr 02, 2011
-
-
Jakob Stoklund Olesen authored
llvm-svn: 128765
-
Jakob Stoklund Olesen authored
When the greedy register allocator is splitting multiple global live ranges, it tends to look at the same interference data many times. The InterferenceCache class caches queries for unaltered LiveIntervalUnions. llvm-svn: 128764
-
Jakob Stoklund Olesen authored
This is more compact and faster than using DenseMap. llvm-svn: 128763
-
Cameron Zwarich authored
transformations in target-specific DAG combines without causing DAGCombiner to delete the same node twice. If you know of a better way to avoid this (see my next patch for an example), please let me know. llvm-svn: 128758
-
- Apr 01, 2011
-
-
Evan Cheng authored
llvm-svn: 128730
-