OSDN Git Service

[GVNHoist] Prune out useless CHI insertions
authorAlexandros Lamprineas <alexandros.lamprineas@arm.com>
Tue, 28 Aug 2018 11:07:54 +0000 (11:07 +0000)
committerAlexandros Lamprineas <alexandros.lamprineas@arm.com>
Tue, 28 Aug 2018 11:07:54 +0000 (11:07 +0000)
commitad2805757e6c2a19a670afaf9dd8ff046a6b9f07
tree600ffccd367be644200b77c44785bdc6c19bbdf2
parent78367b1bd22f4120dc71ce1722c25a9f6fd35d72
[GVNHoist] Prune out useless CHI insertions

Fix for the out-of-memory error when compiling SemaChecking.cpp
with GVNHoist and ubsan enabled. I've used a cache for inserted
CHIs to avoid excessive memory usage.

Differential Revision: https://reviews.llvm.org/D50323

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@340818 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/GVNHoist.cpp