summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2017-12-12 15:54:49 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2017-12-12 15:54:49 +0000
commitfb68c48a8201a5d6066994699e098b267d4e418c (patch)
tree29c88494ffb5ea06fefc90e8f772b7314f78b4f1 /clang/lib/AST/ASTContext.cpp
parent9ed84c8ae85a6274afc8c266dc662bd9e5a9fa21 (diff)
downloadbcm5719-llvm-fb68c48a8201a5d6066994699e098b267d4e418c.tar.gz
bcm5719-llvm-fb68c48a8201a5d6066994699e098b267d4e418c.zip
[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: 320488
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud