- Mar 27, 2008
-
-
Erick Tryzelaar authored
llvm-svn: 48851
-
Dale Johannesen authored
be relocatable. Describe why .set is needed better. llvm-svn: 48848
-
- Mar 26, 2008
-
-
Evan Cheng authored
llvm-svn: 48837
-
Evan Cheng authored
Avoid commuting a def MI in order to coalesce a copy instruction away if any use of the same val# is a copy instruction that has already been coalesced. llvm-svn: 48833
-
Roman Levenstein authored
LLVM Value/Use does and MachineRegisterInfo/MachineOperand does. This allows constant time for all uses list maintenance operations. The idea was suggested by Chris. Reviewed by Evan and Dan. Patch is tested and approved by Dan. On normal use-cases compilation speed is not affected. On very big basic blocks there are compilation speedups in the range of 15-20% or even better. llvm-svn: 48822
-
Roman Levenstein authored
llvm-svn: 48819
-
Roman Levenstein authored
This fixes Bugzilla #1835 (http://llvm.org/bugs/show_bug.cgi?id=1835). This patched is reviewed by Tanya and Dan. Dan tested and approved it. The reason for the bad performance of the old algorithm is that it is very naive and scans every time all nodes of the DAG in the worst case. This patch introduces a new algorithm based on the paper "Online algorithms for maintaining the topological order of a directed acyclic graph" by David J.Pearce and Paul H.J.Kelly. This is the MNR algorithm. It has a linear time worst-case and performs much better in most situations. The paper can be found here: http://fano.ics.uci.edu/cites/Document/Online-algorithms-for-maintaining-the-topological-order-of-a-directed-acyclic-graph.html The main idea of the new algorithm is to compute the topological ordering of the SNodes in the DAG and to maintain it even after DAG modifications. The topological ordering allows for very fast node reachability checks. Tests on very big input files with tens of thousands of instructions in a BB indicate huge speed-ups (up to 10x compilation time improvement) compared to the old version. llvm-svn: 48817
-
Evan Cheng authored
llvm-svn: 48815
-
Owen Anderson authored
llvm-svn: 48811
-
Dale Johannesen authored
llvm's output .s files will go through gcc -std=c99 without triggering preprocesser errors. Approach suggested by Daveed Vandevoorde. llvm-svn: 48808
-
- Mar 25, 2008
-
-
Evan Cheng authored
llvm-svn: 48805
-
Evan Cheng authored
llvm-svn: 48804
-
Owen Anderson authored
llvm-svn: 48803
-
Owen Anderson authored
llvm-svn: 48802
-
Dan Gohman authored
llvm-svn: 48801
-
Dan Gohman authored
marked read-write. Use const so that they can be allocated in a read-only segment. llvm-svn: 48800
-
Dan Gohman authored
llvm-svn: 48797
-
Devang Patel authored
llvm-svn: 48794
-
Devang Patel authored
llvm-svn: 48793
-
Evan Cheng authored
Handle a special case xor undef, undef -> 0. Technically this should be transformed to undef. But this is such a common idiom (misuse) we are going to handle it. llvm-svn: 48792
-
Evan Cheng authored
Handle a special case xor undef, undef -> 0. Technically this should be transformed to undef. But this is such a common idiom (misuse) we are going to handle it. llvm-svn: 48791
-
Dan Gohman authored
llvm-svn: 48779
-
Dan Gohman authored
other things, this allows the scheduler to unfold a load operand in the 2008-01-08-SchedulerCrash.ll testcase, so it now successfully clones the comparison to avoid a pushf+popf. llvm-svn: 48777
-
Bill Wendling authored
object directory. llvm-svn: 48766
-
Evan Cheng authored
llvm-svn: 48759
-
Evan Cheng authored
llvm-svn: 48755
-
Evan Cheng authored
llvm-svn: 48753
-
Evan Cheng authored
If the coalescer commuted a def MI to allow coalescing, it can changed a previously coalesced copy into an non-identity copy. llvm-svn: 48752
-
Evan Cheng authored
llvm-svn: 48751
-
Bill Wendling authored
mask. llvm-svn: 48750
-
- Mar 24, 2008
-
-
Evan Cheng authored
- SSE4.1 extractfps extracts a f32 into a gr32 register. Very useful! Not. Fix the instruction specification and teaches lowering code to use it only when the only use is a store instruction. llvm-svn: 48746
-
Owen Anderson authored
llvm-svn: 48743
-
Owen Anderson authored
llvm-svn: 48739
-
Devang Patel authored
llvm-svn: 48738
-
Dan Gohman authored
field to store the alignment value instead of haing a separate field. llvm-svn: 48727
-
Dan Gohman authored
llvm-svn: 48726
-
Evan Cheng authored
Increasing the inline limit from (overly conservative) 200 to 300. Given each BB costs 20 and each instruction costs 5, 200 means a 4 BB function + 24 instructions (actually less because caller's size also contributes to it). Furthermore, double the limit when more than 10% of the callee instructions are vector instructions. Multimedia kernels tend to love inlining. llvm-svn: 48725
-
Evan Cheng authored
llvm-svn: 48720
-
Owen Anderson authored
With this pass, StrongPHIElim can compile very simple testcases correctly. There's still a ways to go before it's ready for prime time, though. llvm-svn: 48719
-
Evan Cheng authored
Transform (zext (or (icmp), (icmp))) to (or (zext (cimp), (zext icmp))) if at least one of the (zext icmp) can be transformed to eliminate an icmp. llvm-svn: 48715
-