OSDN Git Service

[EarlyCSE & MSSA] Cap the clobbering calls in EarlyCSE.
authorAlina Sbirlea <asbirlea@google.com>
Fri, 15 Feb 2019 22:47:54 +0000 (22:47 +0000)
committerAlina Sbirlea <asbirlea@google.com>
Fri, 15 Feb 2019 22:47:54 +0000 (22:47 +0000)
commit2b63446e67f71dd54fd798541ab2c01f7728f106
tree838e479313719334c6236ade61e4a9fc2f7b5cb2
parenta9c85cb3b822c1e36243346d020dc3283bc90d38
[EarlyCSE & MSSA] Cap the clobbering calls in EarlyCSE.

Summary:
Unlimitted number of calls to getClobberingAccess can lead to high
compile times in pathological cases.
Limitting getClobberingAccess to a fairly high number. Can be adjusted
based on users/need.
Note: this is the only user of MemorySSA currently enabled by default.
The same handling exists in LICM (disabled atm). As MemorySSA gains more
users, this logic of capping will need to move inside MemorySSA.

Reviewers: george.burgess.iv

Subscribers: llvm-commits

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

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