aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugVariables.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2017-12-12 18:47:00 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2017-12-12 18:47:00 +0000
commit195c97e220bf04431ea25ff98eabc9db31f96777 (patch)
tree21535126170ea9efa2ce3ccc2e95af3b7cb046c3 /llvm/lib/CodeGen/LiveDebugVariables.cpp
parentbcde6e715ef0fd2ae3e092b4104cc9c79bd73cf6 (diff)
downloadllvm-195c97e220bf04431ea25ff98eabc9db31f96777.zip
llvm-195c97e220bf04431ea25ff98eabc9db31f96777.tar.gz
llvm-195c97e220bf04431ea25ff98eabc9db31f96777.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: 320510
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
0 files changed, 0 insertions, 0 deletions