[InstCombine] Extra null-checking on TFE/LWE support
authorMichael Liao <michael.hliao@gmail.com>
Fri, 1 Feb 2019 19:53:44 +0000 (19:53 +0000)
committerMichael Liao <michael.hliao@gmail.com>
Fri, 1 Feb 2019 19:53:44 +0000 (19:53 +0000)
commit8b323f53eb4037e06c61f4b3479959056a4ca166
tree43082d7bdb4e2c68a7082cb752a1a32a10ec2715
parent6e75c7e337751f490917024122edacda6afc2495
[InstCombine] Extra null-checking on TFE/LWE support

- If that operand is not ConstantInt, skip enabling TFE/LWE.

Differential Revision: https://reviews.llvm.org/D57539

llvm-svn: 352904
llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
llvm/test/Transforms/InstCombine/AMDGPU/amdgcn-demanded-vector-elts.ll