summaryrefslogtreecommitdiff
path: root/unittests/ADT/TinyPtrVectorTest.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2017-12-11 19:11:16 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2017-12-11 19:11:16 +0000
commit1bc958a4c171fa30abf017afe532dc93e21feb97 (patch)
tree77a3bc43031bc5659f6678d07412db65d59acdb4 /unittests/ADT/TinyPtrVectorTest.cpp
parent50b5493cd61b1badae8a0c0afc9370a051d271e0 (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@320407 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/ADT/TinyPtrVectorTest.cpp')
0 files changed, 0 insertions, 0 deletions