OSDN Git Service

[EarlyCSE] Add option to use MemorySSA for function simplification run of EarlyCSE...
authorGeoff Berry <gberry@codeaurora.org>
Sat, 10 Jun 2017 15:20:03 +0000 (15:20 +0000)
committerGeoff Berry <gberry@codeaurora.org>
Sat, 10 Jun 2017 15:20:03 +0000 (15:20 +0000)
commit47e23552c833e0c587acfcb4c562aea4c54d7b5e
treedb36c4008dfa42f1d7e4eee181f8fdef81ddfa84
parent04f04da96cc25e4ad14747dcaaba72ca733d8e0e
[EarlyCSE] Add option to use MemorySSA for function simplification run of EarlyCSE (off by default).

Summary:
Use MemorySSA for memory dependency checking in the EarlyCSE pass at the
start of the function simplification portion of the pipeline.  We rely
on the fact that GVNHoist runs just after this pass of EarlyCSE to
amortize the MemorySSA construction cost since GVNHoist uses MemorySSA
and EarlyCSE preserves it.

This is turned off by default.  A follow-up change will turn it on to
allow for easier reversion in case it breaks something.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305146 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Passes/PassBuilder.cpp
lib/Transforms/IPO/PassManagerBuilder.cpp