- Jan 01, 2008
-
-
Bill Wendling authored
llvm-svn: 45478
-
- Dec 29, 2007
-
-
Chris Lattner authored
have potential side-effects. llvm-svn: 45392
-
Chris Lattner authored
llvm-svn: 45391
-
- Dec 28, 2007
-
-
Devang Patel authored
Test -simplifycfg only. llvm-svn: 45389
-
Owen Anderson authored
llvm-svn: 45386
-
- Dec 22, 2007
-
-
Chris Lattner authored
us to compile: #include <math.h> int t1(double d) { return signbit(d); } into: _t1: movd %xmm0, %rax shrq $63, %rax ret instead of: _t1: movd %xmm0, %rax shrq $32, %rax shrl $31, %eax ret on x86-64. llvm-svn: 45311
-
Devang Patel authored
not merge current bb and succ even if bb's terminator is unconditional branch to succ. llvm-svn: 45305
-
- Dec 21, 2007
-
-
Duncan Sands authored
return attributes on the floor. In the case of a call to a varargs function where the varargs arguments are being removed, any call attributes on those arguments need to be dropped. I didn't do this because I plan to make it illegal to have such attributes (see next patch). With this change, compiling the gcc filter2 eh test at -O0 and then running opt -std-compile-opts on it results in a correctly working program (compiling at -O1 or higher results in the test failing due to a problem with how we output eh info into the IR). llvm-svn: 45285
-
- Dec 20, 2007
-
-
Christopher Lamb authored
(icmp slt (sub A B) 1) -> (icmp sle A B) icmp sgt (sub A B) -1) -> (icmp sge A B) and add testcase. llvm-svn: 45256
-
- Dec 19, 2007
-
-
Duncan Sands authored
calls 'nounwind'. It is important for correct C++ exception handling that nounwind markings do not get lost, so this transformation is actually needed for correctness. llvm-svn: 45218
-
- Dec 18, 2007
-
-
Christopher Lamb authored
llvm-svn: 45169
-
Christopher Lamb authored
llvm-svn: 45159
-
Christopher Lamb authored
Fold certain additions through selects (and their compares) so as to eliminate subtractions. This code is often produced by the SMAX expansion in SCEV. This implements test/Transforms/InstCombine/2007-12-18-AddSelCmpSub.ll llvm-svn: 45158
-
- Dec 17, 2007
-
-
Duncan Sands authored
how to lower them (with no attempt made to be efficient, since they should only occur for unoptimized code). llvm-svn: 45108
-
- Dec 16, 2007
-
-
Duncan Sands authored
calls. Remove special casing of inline asm from the inliner. There is a potential problem: the verifier rejects invokes of inline asm (not sure why). If an asm call is not marked "nounwind" in some .ll, and instcombine is not run, but the inliner is run, then an illegal module will be created. This is bad but I'm not sure what the best approach is. I'm tempted to remove the check in the verifier... llvm-svn: 45073
-
- Dec 12, 2007
-
-
Wojciech Matyjewicz authored
2. Using zero-extended value of Scale and unsigned division is safe provided that Scale doesn't have the sign bit set. Previously these 2 instructions: %p = bitcast [100 x {i8,i8,i8}]* %x to i8* %q = getelementptr i8* %p, i32 -4 were combined into: %q = getelementptr [100 x { i8, i8, i8 }]* %x, i32 0, i32 1431655764, i32 0 what was incorrect. llvm-svn: 44936
-
- Dec 11, 2007
-
-
Chris Lattner authored
of source/dest elements changes. This implements test/Transforms/InstCombine/bitcast-vector-fold.ll llvm-svn: 44855
-
- Dec 10, 2007
-
-
Chris Lattner authored
Reimplement the xform in Analysis/ConstantFolding.cpp where we can use targetdata to validate that it is safe. While I'm in there, fix some const correctness issues and generalize the interface to the "operand folder". llvm-svn: 44817
-
Duncan Sands authored
on functions as it calculates them. llvm-svn: 44802
-
- Dec 03, 2007
-
-
Devang Patel authored
insert new ExitValue after this operand definition. This fixes PR1828. llvm-svn: 44539
-
- Nov 28, 2007
-
-
Duncan Sands authored
use them. llvm-svn: 44403
-
- Nov 27, 2007
-
-
Duncan Sands authored
the function type, instead they belong to functions and function calls. This is an updated and slightly corrected version of Reid Spencer's original patch. The only known problem is that auto-upgrading of bitcode files doesn't seem to work properly (see test/Bitcode/AutoUpgradeIntrinsics.ll). Hopefully a bitcode guru (who might that be? :) ) will fix it. llvm-svn: 44359
-
- Nov 25, 2007
-
-
Nick Lewycky authored
llvm-svn: 44319
-
Chris Lattner authored
llvm-svn: 44318
-
Duncan Sands authored
trivial difference in function attributes, allow calls to it to be converted to direct calls. Based on a patch by Török Edwin. While there, move the various lists of mutually incompatible parameters etc out of the verifier and into ParameterAttributes.h. llvm-svn: 44315
-
- Nov 23, 2007
-
-
Chris Lattner authored
llvm-svn: 44296
-
Duncan Sands authored
OnlyReadsMemoryFns tables are dead! We get more, and more accurate, information from gcc via the readnone and readonly function attributes. llvm-svn: 44288
-
Chris Lattner authored
even though the bitcast operand did not have integer type. This fixes PR1814. llvm-svn: 44286
-
Chris Lattner authored
llvm-svn: 44284
-
- Nov 22, 2007
-
-
Duncan Sands authored
llvm-svn: 44280
-
Duncan Sands authored
exceptions, so don't turn invokes of them into calls. llvm-svn: 44278
-
- Nov 16, 2007
-
-
Chris Lattner authored
llvm-svn: 44188
-
- Nov 14, 2007
-
-
Chris Lattner authored
by inserting unreachable after no-return calls. llvm-svn: 44099
-
- Nov 13, 2007
-
-
Chris Lattner authored
llvm-svn: 44067
-
Chris Lattner authored
and simplifycfg in the rare cases when it is needed. llvm-svn: 44044
-
- Nov 09, 2007
-
-
Chris Lattner authored
fixes a crash on Transforms/GlobalOpt/2007-11-09-GEP-GEP-Crash.ll and rdar://5585488. llvm-svn: 43949
-
- Nov 08, 2007
-
-
Andrew Lenharth authored
llvm-svn: 43897
-
Andrew Lenharth authored
llvm-svn: 43893
-
- Nov 06, 2007
-
-
Chris Lattner authored
all compute the same value. llvm-svn: 43777
-
Dan Gohman authored
llvm-svn: 43743
-