diff options
| author | Nicolai Haehnle <nhaehnle@gmail.com> | 2019-02-04 21:24:19 +0000 | 
|---|---|---|
| committer | Nicolai Haehnle <nhaehnle@gmail.com> | 2019-02-04 21:24:19 +0000 | 
| commit | a69146e67eb7438675f2f49060987a2ede1e1c47 (patch) | |
| tree | 51b7b67f53580112858253ba3a368de6a29f6905 /llvm/lib/CodeGen | |
| parent | 4ca0b850e0d5e5421b93b3f805047fb4d41c2b72 (diff) | |
| download | bcm5719-llvm-a69146e67eb7438675f2f49060987a2ede1e1c47.tar.gz bcm5719-llvm-a69146e67eb7438675f2f49060987a2ede1e1c47.zip | |
[InstCombine] Cleanup the TFE/LWE check in AMDGPU SimplifyDemanded
Summary:
The fix added in r352904 is not quite correct, or rather misleading:
1. When the texfailctrl (TFC) argument was non-constant, the fix assumed
   non-TFE/LWE, which is incorrect.
2. Regardless, this code path cannot even be hit for correct
   TFE/LWE-enabled calls, because those return a struct. Added
   a test case for those for completeness.
Change-Id: I92d314dbc67a2670f6d7adaab765ef45f56a49cf
Reviewers: hliao, dstuttard, arsenm
Subscribers: kzhuravl, jvesely, wdng, yaxunl, tpr, t-tye, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D57681
llvm-svn: 353097
Diffstat (limited to 'llvm/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions

