llvm-project/llvm/test/Transforms/InstCombine/AMDGPU
Nicolai Haehnle a69146e67e [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
2019-02-04 21:24:19 +00:00
..
amdgcn-demanded-vector-elts.ll [InstCombine] Cleanup the TFE/LWE check in AMDGPU SimplifyDemanded 2019-02-04 21:24:19 +00:00
amdgcn-intrinsics.ll AMDGPU: Add a fast path for icmp.i1(src, false, NE) 2019-01-15 02:13:18 +00:00
lit.local.cfg