Eric Christopher
cee313d288
Revert "Temporarily Revert "Add basic loop fusion pass.""
...
The reversion apparently deleted the test/Transforms directory.
Will be re-reverting again.
llvm-svn: 358552
2019-04-17 04:52:47 +00:00
Eric Christopher
a863435128
Temporarily Revert "Add basic loop fusion pass."
...
As it's causing some bot failures (and per request from kbarton).
This reverts commit r358543/ab70da07286e618016e78247e4a24fcb84077fda.
llvm-svn: 358546
2019-04-17 02:12:23 +00:00
Sanjay Patel
d75064e6d5
[InstCombine] allow add+not --> sub for arbitrary vector constants.
...
llvm-svn: 341335
2018-09-03 18:21:59 +00:00
Sanjay Patel
faa02b1abb
[InstCombine] consolidate tests for ~(X+C); NFC
...
llvm-svn: 341332
2018-09-03 18:04:21 +00:00
Sanjay Patel
17e709b66a
[InstCombine] allow not+sub fold for arbitrary vector constants
...
The fold was implemented for the general case but use-limitation,
but the later constant version which didn't check uses was only
matching splat constants.
llvm-svn: 341292
2018-09-02 19:31:45 +00:00
Sanjay Patel
04ab22b3f4
[InstCombine] move/add tests for not+sub; NFC
...
llvm-svn: 341291
2018-09-02 19:18:13 +00:00
Sanjay Patel
ce241f48c5
[InstCombine] fix icmp with not op and constant to work with splat vector constant
...
llvm-svn: 304562
2017-06-02 16:29:41 +00:00
Sanjay Patel
630a524e8d
[InstCombine] fix/add tests for icmp with not ops; NFC
...
The existing test was not minimal, and there was no coverage
for the variants with a constant or vector types.
llvm-svn: 304555
2017-06-02 15:35:45 +00:00
Sanjay Patel
a1c8814891
[InstCombine] add folds for not-of-shift-right
...
This is another step towards getting rid of dyn_castNotVal,
so we can recommit:
https://reviews.llvm.org/rL300977
As the tests show, we were missing the lshr case for constants
and both ashr/lshr vector splat folds. The ashr case with constant
was being performed inefficiently in 2 steps. It's also possible
there was a latent bug in that case because we can't do that fold
if the constant is positive:
http://rise4fun.com/Alive/Bge
llvm-svn: 302465
2017-05-08 20:49:59 +00:00
Sanjay Patel
322db476f3
[InstCombine] move/add tests for not(shr (not X), Y); NFC
...
llvm-svn: 302451
2017-05-08 18:16:04 +00:00
Sanjay Patel
0c6086f493
[InstCombine] consolidate tests for DeMorgan folds; NFC
...
I'm proposing to add tests and change behavior in D32665.
llvm-svn: 301774
2017-04-30 18:57:12 +00:00
Sanjay Patel
c5f963c2e5
[InstCombine] auto-generate better checks; NFC
...
Also, move a test next to its sibling to eliminate a file with just one test.
llvm-svn: 299824
2017-04-09 15:44:59 +00:00
Sanjay Patel
35f673ef08
fix typos, remove noise; NFCI
...
llvm-svn: 247035
2015-09-08 17:58:22 +00:00
Benjamin Kramer
443c7967ea
InstCombine: Allow folding of xor into icmp by changing the predicate for vectors
...
The loop vectorizer can create this pattern.
llvm-svn: 228954
2015-02-12 20:26:46 +00:00
Suyog Sarda
c3024c75e0
Use FileCheck instead of grep. Change by Sonam.
...
Differential Revision: http://reviews.llvm.org/D6432
llvm-svn: 222876
2014-11-27 10:57:24 +00:00
Chris Lattner
b90ed2233c
manually upgrade a bunch of tests to modern syntax, and remove some that
...
are either unreduced or only test old syntax.
llvm-svn: 133228
2011-06-17 03:14:27 +00:00
Dan Gohman
1880092722
Change tests from "opt %s" to "opt < %s" so that opt doesn't see the
...
input filename so that opt doesn't print the input filename in the
output so that grep lines in the tests don't unintentionally match
strings in the input filename.
llvm-svn: 81537
2009-09-11 18:01:28 +00:00
Dan Gohman
72a13d2476
Use opt -S instead of piping bitcode output through llvm-dis.
...
llvm-svn: 81257
2009-09-08 22:34:10 +00:00
Dan Gohman
9737a63ed8
Change these tests to feed the assembly files to opt directly, instead
...
of using llvm-as, now that opt supports this.
llvm-svn: 81226
2009-09-08 16:50:01 +00:00
Chris Lattner
aaba10e843
Implement PR2298. This transforms:
...
~x < ~y --> y < x
-x == -y --> x == y
llvm-svn: 50882
2008-05-09 05:19:28 +00:00
Tanya Lattner
5640bd186a
Remove llvm-upgrade and update test cases.
...
llvm-svn: 47793
2008-03-01 09:15:35 +00:00
Reid Spencer
83b3d82672
Regression is gone, don't try to find it on clean target.
...
llvm-svn: 33296
2007-01-17 07:59:14 +00:00