aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
diff options
context:
space:
mode:
authorSerguei Katkov <serguei.katkov@azul.com>2017-07-18 05:16:38 +0000
committerSerguei Katkov <serguei.katkov@azul.com>2017-07-18 05:16:38 +0000
commita6fba3d69f23eda92f4351ad5f810058c10e5875 (patch)
treed5e4f6d31ee8a678d5454ab039846dd0b320cefc /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
parent2c627a97fda0c0afa178cacefe3288a11546b911 (diff)
downloadllvm-a6fba3d69f23eda92f4351ad5f810058c10e5875.zip
llvm-a6fba3d69f23eda92f4351ad5f810058c10e5875.tar.gz
llvm-a6fba3d69f23eda92f4351ad5f810058c10e5875.tar.bz2
[CGP] Cleanup - remove redundant code in OptimizeMemoryInst. NFC
optimizeMemoryInst contains a vector AddrModeInsts. The only use of this vector is to check that all instructions are in the same block as memory instruction. This check is guarded by PhiSeen flag, so if we traversed through phi node then we do not need to keep information in AddrModeInsts. AddModeInsts is set first time we found some addressing mode and updated if we found new one later. We can find next addressing mode only if we traverse phi node so all code related to update of AddModeInsts can be safely removed. Reviewers: loladiro, spatel, efriedma Reviewed By: efriedma Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D35291 llvm-svn: 308265
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions