- Jul 03, 2009
-
-
Owen Anderson authored
llvm-svn: 74753
-
Owen Anderson authored
llvm-svn: 74748
-
- Jul 02, 2009
-
-
Chris Lattner authored
This was considering vector intrinsics to have cost 2, but non-vector intrinsics to have cost 1, which is backward. llvm-svn: 74698
-
Dan Gohman authored
a key is present in a std::map or DenseMap to use find instead. llvm-svn: 74676
-
Dan Gohman authored
PassManager was scheduling LCSSA before LoopSimplify, which does not preserve LCSSA. llvm-svn: 74661
-
- Jul 01, 2009
-
-
Dan Gohman authored
llvm-svn: 74646
-
- Jun 28, 2009
-
-
Dan Gohman authored
doesn't have an IV-based operand. This fixes PR4471. llvm-svn: 74399
-
- Jun 27, 2009
-
-
Dan Gohman authored
llvm-svn: 74395
-
Dan Gohman authored
inserted to replace that value must dominate all of of the basic blocks associated with the uses of the value in the PHI, not just one of them. llvm-svn: 74376
-
Dan Gohman authored
This helps it avoid reusing an instruction that doesn't dominate all of the users, in cases where the original instruction was inserted before all of the users were known. This may result in redundant expansions of sub-expressions that depend on loop-unpredictable values in some cases, however this isn't very common, and it primarily impacts IndVarSimplify, so GVN can be expected to clean these up. This eliminates the need for IndVarSimplify's FixUsesBeforeDefs, which fixes several bugs. llvm-svn: 74352
-
- Jun 26, 2009
-
-
Owen Anderson authored
llvm-svn: 74330
-
Douglas Gregor authored
llvm-svn: 74285
-
Dan Gohman authored
llvm-svn: 74243
-
Dan Gohman authored
llvm-svn: 74240
-
- Jun 25, 2009
-
-
Dan Gohman authored
llvm-svn: 74146
-
- Jun 24, 2009
-
-
Dan Gohman authored
terminator, instead of after the last phi. This fixes a bug exposed by ScalarEvolution analyzing more kinds of loops. This fixes PR4436. llvm-svn: 74072
-
Dan Gohman authored
trip counts in more cases. Generalize ScalarEvolution's isLoopGuardedByCond code to recognize And and Or conditions, splitting the code out into an isNecessaryCond helper function so that it can evaluate Ands and Ors recursively, and make SCEVExpander be much more aggressive about hoisting instructions out of loops. test/CodeGen/X86/pr3495.ll has an additional instruction now, but it appears to be due to an arbitrary register allocation difference. llvm-svn: 74048
-
Dan Gohman authored
preheader is already an instruction. llvm-svn: 74031
-
- Jun 23, 2009
-
-
Dan Gohman authored
llvm-svn: 73910
-
- Jun 22, 2009
-
-
Owen Anderson authored
llvm-svn: 73906
-
Dan Gohman authored
now, this hasn't mattered, because ScalarEvolution hasn't been able to compute trip counts for loops with multiple exits. But it will soon. llvm-svn: 73864
-
Dan Gohman authored
terminology that LoopInfo uses. llvm-svn: 73863
-
- Jun 20, 2009
-
-
Dan Gohman authored
llvm-svn: 73796
-
Dan Gohman authored
hand-crafted testcase which demonstrates the bug that was exposed in 254.gap. llvm-svn: 73793
-
Dan Gohman authored
which it isn't prepared to handle. llvm-svn: 73787
-
- Jun 19, 2009
-
-
Evan Cheng authored
llvm-svn: 73783
-
Chris Lattner authored
as if they were multiple uses of the same instruction. This interacts well with the existing loadpre that j-t does to open up many new jump threads earlier. llvm-svn: 73768
-
Nick Lewycky authored
llvm-svn: 73755
-
Chris Lattner authored
when it allows forming a tail call. Patch by Frits van Bommel. This implements PR4323. llvm-svn: 73752
-
Chris Lattner authored
strcmp -> memcmp when the lengths of the strings are unknown. Patch by Nick Lewycky! llvm-svn: 73751
-
- Jun 18, 2009
-
-
Dan Gohman authored
as signed max tests. Along with r73717, this helps CodeGen avoid emitting code for a maximum operation for this class of loop. llvm-svn: 73718
-
Anton Korobeynikov authored
llvm-svn: 73715
-
Dan Gohman authored
casted induction variables in cases where the cast isn't foldable. It ended up being a pessimization in many cases. This could be fixed, but it would require a bunch of complicated code in IVUsers' clients. The advantages of this approach aren't visible enough to justify it at this time. llvm-svn: 73706
-
Dan Gohman authored
C is not a low-bits mask, and add a similar instcombine for zext((trunc(t) & C) ^ C). llvm-svn: 73705
-
Dan Gohman authored
multiple users. llvm-svn: 73656
-
- Jun 17, 2009
-
-
Dale Johannesen authored
move loads back past a check that the load address is valid, see new testcase. The test that went in with 72661 has exactly this case, except that the conditional it's moving past is checking something else; I've settled for changing that test to reference a global, not a pointer. It may be possible to scan all the tests you pass and make sure none of them are checking any component of the address, but it's not trivial and I'm not trying to do that here. llvm-svn: 73632
-
Torok Edwin authored
llvm-svn: 73625
-
Dan Gohman authored
llvm-svn: 73621
-
Eli Friedman authored
SRem. llvm-svn: 73598
-
- Jun 16, 2009
-
-
Dan Gohman authored
llvm-svn: 73541
-