summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstSimplify/fp-undef.ll
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Temporarily Revert "Add basic loop fusion pass.""Eric Christopher2019-04-171-0/+533
| | | | | | | | The reversion apparently deleted the test/Transforms directory. Will be re-reverting again. llvm-svn: 358552
* Temporarily Revert "Add basic loop fusion pass."Eric Christopher2019-04-171-533/+0
| | | | | | | | As it's causing some bot failures (and per request from kbarton). This reverts commit r358543/ab70da07286e618016e78247e4a24fcb84077fda. llvm-svn: 358546
* [InstSimplify] add tests for undef + partial undef constant folding; NFCSanjay Patel2018-11-301-0/+80
| | | | | | | | These tests should probably go under a separate test file because they should fold with just -constprop, but they're similar to the scalar tests already in here. llvm-svn: 348045
* [InstSimplify] fp_binop X, undef --> NaNSanjay Patel2018-03-101-32/+20
| | | | | | The variable operand could be NaN, so it's always safe to propagate NaN. llvm-svn: 327212
* [ConstantFold] fp_binop AnyConstant, undef --> NaNSanjay Patel2018-03-101-30/+30
| | | | | | | | | | | | | | | | | | With the updated LangRef ( D44216 / rL327138 ) in place, we can proceed with more constant folding. I'm intentionally taking the conservative path here: no matter what the constant or the FMF, we can always fold to NaN. This is because the undef operand can be chosen as NaN, and in our simplified default FP env, nothing else happens - NaN just propagates to the result. If we find some way/need to propagate undef instead, that can be added subsequently. The tests show that we always choose the same quiet NaN constant (0x7FF8000000000000 in IR text). There were suggestions to improve that with a 'NaN' string token or not always print a 64-bit hex value, but those are independent changes. We might also consider setting/propagating the payload of NaN constants as an enhancement. Differential Revision: https://reviews.llvm.org/D44308 llvm-svn: 327208
* [InstSimplify] fix FP infinite hex constant values in tests; NFCSanjay Patel2018-03-091-8/+8
| | | | | | Really should improve this... llvm-svn: 327144
* [ConstantFold] fp_binop undef, undef --> undefSanjay Patel2018-03-081-5/+5
| | | | | | | | | | | | | | | | | These are uncontroversial and independent of a proposed LangRef edits (D44216). I tried to fix tests that would fold away: rL327004 rL327028 rL327030 rL327034 I'm not sure if the Reassociate tests are meaningless yet, but they probably will be as we add more folds, so if anyone has suggestions or wants to fix those, please do. Differential Revision: https://reviews.llvm.org/D44258 llvm-svn: 327058
* [InstSimplify] add more tests for FP undef; NFCSanjay Patel2018-03-081-0/+376
| | | | llvm-svn: 327012
* [InstSimplify] add tests for FP with undef operand; NFCSanjay Patel2018-02-271-0/+89
Are any of these correct? llvm-svn: 326241
OpenPOWER on IntegriCloud