- Feb 02, 2007
-
-
Reid Spencer authored
llvm-svn: 33785
-
Reid Spencer authored
llvm-svn: 33783
-
Chris Lattner authored
llvm-svn: 33779
-
Reid Spencer authored
This feature is needed in order to support shifts of more than 255 bits on large integer types. This changes the syntax for llvm assembly to make shl, ashr and lshr instructions look like a binary operator: shl i32 %X, 1 instead of shl i32 %X, i8 1 Additionally, this should help a few passes perform additional optimizations. llvm-svn: 33776
-
- Feb 01, 2007
-
-
Chris Lattner authored
pessimization where instcombine can sink a load (good for code size) that prevents an alloca from being promoted by mem2reg (bad for everything). llvm-svn: 33771
-
- Jan 31, 2007
-
-
Chris Lattner authored
llvm-svn: 33715
-
Chris Lattner authored
llvm-svn: 33705
-
Chris Lattner authored
llvm-svn: 33693
-
Chris Lattner authored
llvm-svn: 33688
-
Chris Lattner authored
llvm-svn: 33680
-
Chris Lattner authored
llvm-svn: 33674
-
Chris Lattner authored
llvm-svn: 33672
-
- Jan 30, 2007
-
-
Chris Lattner authored
llvm-svn: 33666
-
Chris Lattner authored
This occurs in C++ code like: #include <iostream> #include <iterator> int a[] = { 1, 2, 3, 4, 5 }; int main() { using namespace std; copy(a, a + sizeof(a)/sizeof(a[0]), ostream_iterator<int>(cout, "\n")); return 0; } Before we would decide the loop trip count is: sdiv (i32 sub (i32 ptrtoint (i32* getelementptr ([5 x i32]* @a, i32 0, i32 5) to i32), i32 ptrtoint ([5 x i32]* @a to i32)), i32 4) Now we decide it is "5". Amazing. This code will need to be refactored, but I'm doing that as a separate commit. llvm-svn: 33665
-
Reid Spencer authored
confusion with external linkage types. llvm-svn: 33663
-
- Jan 29, 2007
-
-
Nick Lewycky authored
Fix initializeConstant, now initializeInt. Fixes major performance bottleneck. X == Y || X->DominatedBy(Y) is redundant. Remove the X == Y part. Fix crasher in makeEqual where getOrInsertNode would add a new constant, producing an NE relationship between the two members we're trying to make equal. This now allows us to mark more BBs as unreachable. llvm-svn: 33612
-
- Jan 28, 2007
-
-
Chris Lattner authored
Mozilla that Anton tracked down. llvm-svn: 33591
-
- Jan 26, 2007
-
-
Devang Patel authored
llvm-svn: 33511
-
- Jan 22, 2007
-
-
Reid Spencer authored
changes: (1) don't special case for i1 any more, (2) use the new TargetData::getTypeSizeInBits method to ensure source and dest are the same bit width. llvm-svn: 33427
-
- Jan 21, 2007
-
-
Reid Spencer authored
Clean up handling of isFloatingPoint() and dealing with PackedType. Patch by Gordon Henriksen! llvm-svn: 33415
-
Reid Spencer authored
We only want to do this if the src and destination types have the same bit width. This patch uses TargetData::getTypeSizeInBits() instead of making a special case for integer types and avoiding the transform if they don't match. llvm-svn: 33414
-
- Jan 20, 2007
-
-
Chris Lattner authored
these alignment amounts to align scalars when we can. Patch by Scott Michel! llvm-svn: 33409
-
- Jan 19, 2007
-
-
Reid Spencer authored
don't allow the transform if V and the pointer's element type are different width integer types. llvm-svn: 33371
-
Reid Spencer authored
This is the final patch for this PR. It implements some minor cleanup in the use of IntegerType, to wit: 1. Type::getIntegerTypeMask -> IntegerType::getBitMask 2. Type::Int*Ty changed to IntegerType* from Type* 3. ConstantInt::getType() returns IntegerType* now, not Type* This also fixes PR1120. Patch by Sheng Zhou. llvm-svn: 33370
-
- Jan 18, 2007
-
-
Chris Lattner authored
infinitely loops. llvm-svn: 33343
-
Reid Spencer authored
transform. Change some variable names so it is clear what is source and what is dest of the cast. Also, add an assert to ensure that the integer to integer case is asserting if the bitwidths are different. This prevents illegal casts from being formed and catches bitwidth bugs sooner. llvm-svn: 33337
-
- Jan 17, 2007
-
-
Reid Spencer authored
Adjust the use of SetVector for changes in SetVector's interface. Patch by Gordon Henriksen. llvm-svn: 33280
-
- Jan 15, 2007
-
-
Chris Lattner authored
because TargetData::getTypeSize() returns the same for i1 and i8. This fix is not right for the full generality of bitwise types, but it fixes the regression. llvm-svn: 33237
-
Nick Lewycky authored
the basic block and is stable across runs in gdb or valgrind. Make Node::update handle edges which dominate and are tighter than existing edges. Replace makeEqual's "squeeze theorem" code. Fixes miscompilation. Gate the calls to defToOps and opsToDef. Before this, we were getting IG edges about values which weren't even defined in the dominated area. This reduces the size of the IG by about half. llvm-svn: 33236
-
Chris Lattner authored
induction variables. llvm-svn: 33234
-
Chris Lattner authored
llvm-svn: 33232
-
Chris Lattner authored
often kicks in for ?: expressions. llvm-svn: 33231
-
Chris Lattner authored
rename Type::getIntegralTypeMask to Type::getIntegerTypeMask. This makes naming much more consistent. For example, there are now no longer any instances of IntegerType that are not considered isInteger! :) llvm-svn: 33225
-
Chris Lattner authored
llvm-svn: 33218
-
- Jan 14, 2007
-
-
Chris Lattner authored
NANs. This fixes PR1111 and Transforms/InstCombine/2007-01-14-FcmpSelf.ll llvm-svn: 33208
-
Chris Lattner authored
of PR1107 llvm-svn: 33185
-
- Jan 13, 2007
-
-
Reid Spencer authored
llvm-svn: 33184
-
Nick Lewycky authored
that properties were being applied where they didn't belong. Fixes crash in new MiBench testcase. Also mark debugging code as such in #ifdef. llvm-svn: 33177
-
Chris Lattner authored
llvm-svn: 33175
-
Chris Lattner authored
llvm-svn: 33164
-