diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2017-12-12 16:58:48 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2017-12-12 16:58:48 +0000 |
commit | 6c363ab160eadfa60ead2f80e6406854f700ec3b (patch) | |
tree | df5cd141a6a05abaf2046464daf5e01cf8ea9104 /projects | |
parent | 258219304a004f965277e1da6f6fa877398f301c (diff) |
[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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320496 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'projects')
0 files changed, 0 insertions, 0 deletions