- Mar 29, 2008
-
-
Owen Anderson authored
Remove some unneeded code for LiveInterval joining, and fix a bug in the Phi elimination algorithm where we were accidentally reasoning about the source rather than the destination. llvm-svn: 48936
-
Dan Gohman authored
load value. This fixes PR2177. llvm-svn: 48932
-
- Mar 28, 2008
-
-
Evan Cheng authored
llvm-svn: 48922
-
Chris Lattner authored
llvm-svn: 48916
-
Duncan Sands authored
llvm-svn: 48914
-
Evan Cheng authored
llvm-svn: 48912
-
Evan Cheng authored
llvm-svn: 48911
-
Nick Lewycky authored
llvm-svn: 48910
-
Chris Lattner authored
memsets that initialize "structs of arrays" and other store sequences that are not sequential. This is still only enabled if you pass -form-memset-from-stores. The flag is not heavily tested and I haven't analyzed the perf regressions when -form-memset-from-stores is passed either, but this causes no make check regressions. llvm-svn: 48909
-
Evan Cheng authored
llvm-svn: 48908
-
- Mar 27, 2008
-
-
Duncan Sands authored
In order to handle indexed nodes I had to introduce a new constructor, and since I was there I factorized the code in the various load constructors. llvm-svn: 48894
-
Dan Gohman authored
nodes. This doesn't currently have much impact the generated code, but it does produce simpler-looking SelectionDAGs, and consequently simpler-looking ScheduleDAGs, because there are fewer spurious dependencies. In particular, CopyValueToVirtualRegister now uses the entry node as the input chain dependency for new CopyToReg nodes instead of calling getRoot and depending on the most recent memory reference. Also, rename UnorderedChains to PendingExports and pull it up from being a local variable in SelectionDAGISel::BuildSelectionDAG to being a member variable of SelectionDAGISel, so that it doesn't have to be passed around to all the places that need it. llvm-svn: 48893
-
Devang Patel authored
Increment iterator in advance. llvm-svn: 48890
-
Roman Levenstein authored
llvm-svn: 48873
-
Roman Levenstein authored
called LimitedSumOfUnscheduledPredsOfSuccs. It terminates the computation after a given treshold is reached. This new function is always faster, but brings real wins only on bigger test-cases. The old function SumOfUnscheduledPredsOfSuccs is left in-place for now and therefore a warning about an unused static function is produced. llvm-svn: 48872
-
Evan Cheng authored
llvm-svn: 48856
-
Evan Cheng authored
llvm-svn: 48855
-
Evan Cheng authored
llvm-svn: 48854
-
Evan Cheng authored
llvm-svn: 48853
-
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
-