diff options
author | Craig Topper <craig.topper@intel.com> | 2020-07-09 11:01:11 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2020-07-09 11:01:12 -0700 |
commit | 122b0640fc97202bacb630744dfc6da58f11af42 (patch) | |
tree | 37871bc96e5b99aa7f93b38f39742c41c1db2936 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | f5f58f1f733b880decfb8f12ebba6126da818496 (diff) | |
download | llvm-122b0640fc97202bacb630744dfc6da58f11af42.zip llvm-122b0640fc97202bacb630744dfc6da58f11af42.tar.gz llvm-122b0640fc97202bacb630744dfc6da58f11af42.tar.bz2 |
[InstSimplify] Don't fold vectors of partial undef in SimplifySelectInst if the non-undef element value might produce poison
We can't fold to the non-undef value unless we know it isn't poison. So check each element with isGuaranteedNotToBeUndefOrPoison. This currently rules out all constant expressions.
Differential Revision: https://reviews.llvm.org/D83442
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions