- May 16, 2008
-
-
Gabor Greif authored
API change for {BinaryOperator|CmpInst|CastInst}::create*() --> Create. Legacy interfaces will be in place for some time. (Merge from use-diet branch.) llvm-svn: 51200
-
Duncan Sands authored
included after local headers. llvm-svn: 51187
-
Evan Cheng authored
llvm-svn: 51183
-
Owen Anderson authored
safer manner by loop deletion. llvm-svn: 51182
-
Owen Anderson authored
Also, use SCEV to determine the trip count of the loop, which is more powerful and accurate that Loop::getTripCount. llvm-svn: 51179
-
Chris Lattner authored
llvm-svn: 51176
-
Dan Gohman authored
use-before-def. The problem comes up in code with multiple PHIs where one PHI is being rewritten in terms of the other, but the other needs to be casted first. LLVM rules requre the cast instruction to be inserted after any PHI instructions, but when instructions were inserted to replace the second PHI value with a function of the first, they were ended up going before the cast instruction. Avoid this problem by remembering the location of the cast instruction, when one is needed, and inserting the expansion of the new value after it. This fixes a bug that surfaced in 255.vortex on x86-64 when instcombine was removed from the middle of the loop optimization passes. llvm-svn: 51169
-
- May 15, 2008
-
-
Devang Patel authored
Patch by Matthijs Kooijman. llvm-svn: 51154
-
Duncan Sands authored
compiling with gcc 4.3. llvm-svn: 51145
-
Gabor Greif authored
Fix a bunch of 80col violations that arose from the Create API change. Tweak makefile targets to find these better. llvm-svn: 51143
-
Bill Wendling authored
is bitcast to return a floating point value. The result of the instruction may not be used by the program afterwards, and LLVM will happily remove all instructions except the call. But, on some platforms, if a value is returned as a floating point, it may need to be removed from the stack (like x87). Thus, we can't get rid of the bitcast even if there isn't a use of the value. llvm-svn: 51134
-
- May 14, 2008
-
-
Chris Lattner authored
llvm-svn: 51130
-
Devang Patel authored
Patch by Matthijs Kooijman! llvm-svn: 51114
-
Dan Gohman authored
Patch by Matthijs Kooijman! llvm-svn: 51083
-
Owen Anderson authored
bug as well as a missed optimization. We weren't properly checking for local dependencies before moving on to non-local ones when doing non-local read-only call CSE. llvm-svn: 51082
-
- May 13, 2008
-
-
Dale Johannesen authored
llvm-svn: 51063
-
Owen Anderson authored
llvm-svn: 51035
-
Owen Anderson authored
llvm-svn: 51024
-
Dan Gohman authored
address of the PassInfo directly instead of calling getPassInfo. This eliminates a bunch of dynamic initializations of static data. Also, fold RegisterPassBase into PassInfo, make a bunch of its data members const, and rearrange some code to initialize data members in constructors instead of using setter member functions. llvm-svn: 51022
-
Nate Begeman authored
llvm-svn: 51021
-
Dan Gohman authored
several things that were neither in an anonymous namespace nor static but not intended to be global. llvm-svn: 51017
-
- May 12, 2008
-
-
Owen Anderson authored
llvm-svn: 50995
-
Owen Anderson authored
Move the various analyses used by GVN into static variables so we don't have to keep passing them around or refetching them. llvm-svn: 50963
-
- May 11, 2008
-
-
Chris Lattner authored
method. DOUT statements are disabled when assertions are off, but the side effects of getName() are still evaluated. Just call getNameSTart, which is close enough and doesn't cause heap traffic. llvm-svn: 50958
-
Chris Lattner authored
llvm-svn: 50957
-
- May 09, 2008
-
-
Chris Lattner authored
crash on kimwitu++. llvm-svn: 50901
-
Duncan Sands authored
llvm-svn: 50900
-
Chris Lattner authored
~x < ~y --> y < x -x == -y --> x == y llvm-svn: 50882
-
Chris Lattner authored
llvm-svn: 50881
-
- May 08, 2008
-
-
Gordon Henriksen authored
Patch by Matthijs Kooijman! llvm-svn: 50861
-
Chris Lattner authored
also need to be checked for memory modifying instructions before we can sink them. THis fixes the second half of PR2297. llvm-svn: 50860
-
Chris Lattner authored
delete the first store in: store x -> p load p store y -> p This is for PR2297. llvm-svn: 50859
-
Devang Patel authored
llvm-svn: 50851
-
Anton Korobeynikov authored
llvm-svn: 50836
-
- May 07, 2008
-
-
Dan Gohman authored
llvm-svn: 50793
-
Anton Korobeynikov authored
llvm-svn: 50775
-
- May 06, 2008
-
-
Owen Anderson authored
We need to update PHIs containing the exiting block, not the exit block. We really should come up with better names for these. llvm-svn: 50770
-
Devang Patel authored
llvm-svn: 50713
-
Chris Lattner authored
llvm-svn: 50699
-
Dan Gohman authored
llvm-svn: 50696
-