aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/InterferenceCache.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2017-12-12 20:28:46 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2017-12-12 20:28:46 +0000
commit83c15b136337ea3f23917e4294d12a695ff7c788 (patch)
treecdb03e2d6a15b13cc9cd8e240f5fb4cbd968534d /llvm/lib/CodeGen/InterferenceCache.cpp
parent212bcf8370d43dcbaa4a787cca84259ec140546e (diff)
downloadllvm-83c15b136337ea3f23917e4294d12a695ff7c788.zip
llvm-83c15b136337ea3f23917e4294d12a695ff7c788.tar.gz
llvm-83c15b136337ea3f23917e4294d12a695ff7c788.tar.bz2
[InstCombine] Fix PR35618: Instcombine hangs on single minmax load bitcast.
Summary: If we have pattern `store (load(bitcast(select (cmp(V1, V2), &V1, &V2)))), bitcast)`, but the load is used in other instructions, it leads to looping in InstCombiner. Patch adds additional check that all users of the load instructions are stores and then replaces all uses of load instruction by the new one with new type. Reviewers: RKSimon, spatel, majnemer Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D41072 llvm-svn: 320525
Diffstat (limited to 'llvm/lib/CodeGen/InterferenceCache.cpp')
0 files changed, 0 insertions, 0 deletions