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
Max Kazantsev
20da7e467a
Revert "[InstCombine] Delay foldICmpUsingKnownBits until simple transforms are done"
...
llvm-svn: 336410
2018-07-06 04:04:13 +00:00
Max Kazantsev
3097b76e8c
[InstCombine] Delay foldICmpUsingKnownBits until simple transforms are done
...
This patch changes order of transform in InstCombineCompares to avoid
performing transforms based on ranges which produce complex bit arithmetics
before more simple things (like folding with constants) are done. See PR37636
for the motivating example.
Differential Revision: https://reviews.llvm.org/D48584
Reviewed By: spatel, lebedev.ri
llvm-svn: 336172
2018-07-03 06:23:57 +00:00
Sanjay Patel
291c3d8ff2
[InstCombine] icmp Pred (shl nsw X, C1), C0 --> icmp Pred X, C0 >> C1
...
Try harder to fold icmp with shl nsw as discussed here:
http://lists.llvm.org/pipermail/llvm-dev/2017-January/108749.html
This is similar to the 'shl nuw' transforms that were added with D25913.
This may eventually help solve:
https://llvm.org/bugs/show_bug.cgi?id=30773
Differential Revision: https://reviews.llvm.org/D28406
llvm-svn: 292492
2017-01-19 16:12:10 +00:00
Sanjay Patel
cfb8a45942
[InstCombine] add tests for shl nsw with icmp eq/ne; NFCI
...
These should be fixed with D28406.
llvm-svn: 292441
2017-01-18 21:31:21 +00:00
Sanjay Patel
f42a955c3e
[InstCombine] add tests for shl nsw + icmp sle; NFC
...
We want to handle these cases similarly to icmp sgt, so add the tests for it.
See: https://reviews.llvm.org/D28406
llvm-svn: 292248
2017-01-17 20:15:26 +00:00
Sanjay Patel
2715d92389
[InstCombine] add a vector version of a test added in r291262; NFC
...
llvm-svn: 291265
2017-01-06 19:14:05 +00:00
Sanjay Patel
8d4aa10960
[InstCombine] move and add tests for icmp + shl nsw; NFC
...
As discussed here:
http://lists.llvm.org/pipermail/llvm-dev/2017-January/108749.html
...we should be able to better optimize this pattern.
llvm-svn: 291262
2017-01-06 18:57:54 +00:00