Commit Graph

6409 Commits

Author SHA1 Message Date
Brian Gaeke 7610971759 It seems likely that floats would need a cast too, because they are
ordinarily promoted to doubles.

llvm-svn: 6894
2003-06-25 03:05:33 +00:00
Chris Lattner ef3d5d055d New testcase
llvm-svn: 6893
2003-06-24 23:40:27 +00:00
Chris Lattner 7f8bb880b4 Don't print message, remove temp files
llvm-svn: 6892
2003-06-24 23:38:09 +00:00
Chris Lattner ee967711e9 Fix bug: ADCE/2003-06-24-BadSuccessor.ll
llvm-svn: 6891
2003-06-24 23:02:45 +00:00
Chris Lattner 67baccf458 New testcase
llvm-svn: 6890
2003-06-24 22:58:05 +00:00
Chris Lattner 8bd8bc8399 Make assertion more descriptive
llvm-svn: 6889
2003-06-24 22:20:19 +00:00
Chris Lattner 0892887b1f Modernize testcase
llvm-svn: 6888
2003-06-24 21:51:03 +00:00
Chris Lattner 834105502d Do not mark ALL terminators live if any instruciton in the block is live. We only
want to mark it live if it is an unconditional branch.  This fixes bug:
ADCE/2002-05-28-Crash.ll and makes this pass _much_ more useful.

llvm-svn: 6887
2003-06-24 21:49:45 +00:00
Chris Lattner f65c39946a modernize testcase
llvm-svn: 6886
2003-06-24 21:23:50 +00:00
Chris Lattner 70f3ad6eb3 Make sure adce is basically working!
llvm-svn: 6885
2003-06-24 21:22:09 +00:00
Chris Lattner 639d5880f6 Modernize testcases
llvm-svn: 6884
2003-06-24 21:21:31 +00:00
Chris Lattner 7e270580c8 Fix bug: SCCP/2003-06-24-OverdefinedPHIValue.ll
llvm-svn: 6883
2003-06-24 20:29:52 +00:00
Chris Lattner 4ded20b380 New testcase
llvm-svn: 6882
2003-06-24 20:29:36 +00:00
Chris Lattner f7544873de Fix bug: TailDup/2003-06-24-Simpleloop.ll
llvm-svn: 6881
2003-06-24 19:48:06 +00:00
Chris Lattner 17b4e96e7e Testcase reduced by bugpoint
llvm-svn: 6880
2003-06-24 19:17:37 +00:00
Chris Lattner d410284dd2 Run the tail dup tests
llvm-svn: 6879
2003-06-24 18:49:51 +00:00
Joel Stanley d1e35d03b3 Prevented inclusion of (non-existent) stdint.h on Sparc.
llvm-svn: 6876
2003-06-24 02:46:47 +00:00
Chris Lattner 55d4bda861 Implement new transforms:
Replace (cast (sub A, B) to bool) -> (setne A, B)
  Replace (cast (add A, B) to bool) -> (setne A, -B)

llvm-svn: 6873
2003-06-23 21:59:52 +00:00
Chris Lattner eea63a519a Fix comment
llvm-svn: 6872
2003-06-23 21:52:59 +00:00
Chris Lattner b501ef80ff Yet another testcase
llvm-svn: 6871
2003-06-23 21:49:25 +00:00
Chris Lattner 4bc0c4b974 Test cases for when casts to bool can be eliminated
llvm-svn: 6870
2003-06-23 21:48:26 +00:00
Brian Gaeke 04bdfe624c Fix 2003-06-23-PromotedExprs.llx -- if we are adding two bytes we better
explicitly cast the result to be a byte, or C will gleefully promote it
to int.

llvm-svn: 6869
2003-06-23 20:00:51 +00:00
Brian Gaeke 226563f7b9 New test case for C Writer regression found in 256.bzip2
llvm-svn: 6868
2003-06-23 19:59:17 +00:00
Brian Gaeke bf4cc5e735 Allow .llx testcases (i.e., those that contain explicit RUN: stmts.)
llvm-svn: 6867
2003-06-23 19:58:50 +00:00
Brian Gaeke fcd72643fa Include <cmath> instead of <math.h>
Remove isnan; it's too unportable to handle cleanly at this point.

llvm-svn: 6866
2003-06-23 19:41:55 +00:00
Chris Lattner 4c9cd8262a Add support for GCC 3.3
llvm-svn: 6865
2003-06-23 19:16:20 +00:00
Chris Lattner 42d3570b92 New testcase for a GCC bug
llvm-svn: 6863
2003-06-23 18:06:21 +00:00
Chris Lattner bf2c46254a avoid dividing by zero when dealing with zero sized types (like [0 x double])
llvm-svn: 6862
2003-06-23 17:36:49 +00:00
Vikram S. Adve 50b1d41ad4 Add the padding needed for variable-size alloca's, which should work now.
llvm-svn: 6859
2003-06-23 02:13:57 +00:00
Chris Lattner 0c78f3fb14 New testcase narrowed down by Joel
llvm-svn: 6858
2003-06-22 21:40:38 +00:00
Chris Lattner 22ced56476 Fix bug: InstCombine/2003-06-22-ConstantExprCrash.ll
llvm-svn: 6857
2003-06-22 20:48:30 +00:00
Chris Lattner 92963de6fa Add paranoia checking
llvm-svn: 6856
2003-06-22 20:46:00 +00:00
Chris Lattner 3a8622527c New testcase
llvm-svn: 6855
2003-06-22 20:45:39 +00:00
Chris Lattner ef47a506a1 New testcases
llvm-svn: 6854
2003-06-22 20:32:35 +00:00
Chris Lattner c6fcd9338c Initial checkin
llvm-svn: 6853
2003-06-22 20:30:00 +00:00
Chris Lattner 268c1392da Test change
llvm-svn: 6852
2003-06-22 20:25:27 +00:00
Chris Lattner e81e0d8da9 Add tail duplication pass to the pipeline, move the verifier pass to the front
Other minor reorganizations

llvm-svn: 6849
2003-06-22 20:11:45 +00:00
Chris Lattner decc3639c1 Add prototype for tail-dup pass
llvm-svn: 6847
2003-06-22 20:10:42 +00:00
Chris Lattner a5434caa5c Initial checkin of Tail duplication pass.
llvm-svn: 6846
2003-06-22 20:10:28 +00:00
Chris Lattner 53b843fc04 Do not use the inefficient, fixed function, CBW, CDQ, ... instructions
llvm-svn: 6844
2003-06-22 03:31:18 +00:00
Chris Lattner bd3837b1b2 Get rid of WORDSIZE macro which can pollute untold numbers of translation units
llvm-svn: 6843
2003-06-22 03:09:10 +00:00
Chris Lattner 52de05c6b3 Remove a ton of extraneous #includes
llvm-svn: 6842
2003-06-22 03:08:05 +00:00
Chris Lattner c7031d0244 Whoops, accidentally lost a #include
llvm-svn: 6841
2003-06-22 03:04:58 +00:00
Chris Lattner d791d8e427 Remove support for the MultiObject flag, which was fundamentally broken
llvm-svn: 6840
2003-06-22 03:03:52 +00:00
Chris Lattner 09ede5c936 Remove support for the MultiObject flag, which was just fundamentally broken
llvm-svn: 6839
2003-06-22 03:03:24 +00:00
Chris Lattner d0d51605b2 Instcombine cast (getelementptr Ptr, 0, 0, 0) to ... into: cast Ptr to ...
This fixes type safety problems in a variety of benchmarks that were confusing
DSA.

llvm-svn: 6837
2003-06-21 23:12:02 +00:00
Chris Lattner a103d76cbe Add testcase for reason that typesafety of power is being broken
llvm-svn: 6836
2003-06-21 22:59:39 +00:00
Chris Lattner 364e631d49 Clarify that variables must be global
llvm-svn: 6835
2003-06-21 21:45:56 +00:00
Chris Lattner 812110e81f update documentation about columns
llvm-svn: 6833
2003-06-21 20:09:01 +00:00
Chris Lattner 6e1ec2394f Minor simplification to 64-bit instsel
llvm-svn: 6831
2003-06-21 18:15:27 +00:00