aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2015-05-22 17:41:35 +0000
committerChandler Carruth <chandlerc@gmail.com>2015-05-22 17:41:35 +0000
commit0215608bda88aeb5a56dc3656c89774c0bb2b696 (patch)
tree4b0bc2eb258af5d22c7cba384cd7dbc2b4caea37 /clang/lib/Frontend/CompilerInvocation.cpp
parente26236eed9107e28d1b31a3de58c168202181a41 (diff)
downloadllvm-0215608bda88aeb5a56dc3656c89774c0bb2b696.zip
llvm-0215608bda88aeb5a56dc3656c89774c0bb2b696.tar.gz
llvm-0215608bda88aeb5a56dc3656c89774c0bb2b696.tar.bz2
[Unroll] Separate the logic for testing each iteration of the loop,
accumulating estimated cost, and other loop-centric logic from the logic used to analyze instructions in a particular iteration. This makes the visitor very narrow in scope -- all it does is visit instructions, update a map of simplified values, and return whether it is able to optimize away a particular instruction. The two cost metrics are now returned as an optional struct. When the optional is left unengaged, there is no information about the unrolled cost of the loop, when it is engaged the cost metrics are available to run against the thresholds. No functionality changed. llvm-svn: 238033
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions