aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2015-01-13 07:07:13 +0000
committerMehdi Amini <mehdi.amini@apple.com>2015-01-13 07:07:13 +0000
commit22e59748efc116532f6ddd09f02dcf42fa64f647 (patch)
tree5036f1d4fc512c45a68ef4cfbe20f06330e50793 /clang/lib/Lex/ModuleMap.cpp
parent91805e6f5647f3270066d496aa3ee9c14b05d0d6 (diff)
downloadllvm-22e59748efc116532f6ddd09f02dcf42fa64f647.zip
llvm-22e59748efc116532f6ddd09f02dcf42fa64f647.tar.gz
llvm-22e59748efc116532f6ddd09f02dcf42fa64f647.tar.bz2
Peephole opt needs optimizeSelect() to keep track of newly created MIs
Peephole optimizer is scanning a basic block forward. At some point it needs to answer the question "given a pointer to an MI in the current BB, is it located before or after the current instruction". To perform this, it keeps a set of the MIs already seen during the scan, if a MI is not in the set, it is assumed to be after. It means that newly created MIs have to be inserted in the set as well. This commit passes the set as an argument to the target-dependent optimizeSelect() so that it can properly update the set with the (potentially) newly created MIs. llvm-svn: 225772
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions