summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-07-14 01:06:29 +0000
committerDan Gohman <gohman@apple.com>2009-07-14 01:06:29 +0000
commit6f6d86481594a025df4008a2fae172122b4750b4 (patch)
tree51cb62c9983956eb870e0c934051ba9e80cbd612 /clang/lib/CodeGen/CGDebugInfo.cpp
parentfc4b5cb7a6ff07f4f232259a165e129ac3adfc2a (diff)
downloadbcm5719-llvm-6f6d86481594a025df4008a2fae172122b4750b4.tar.gz
bcm5719-llvm-6f6d86481594a025df4008a2fae172122b4750b4.zip
Introduce a new LoopInfo utility function makeLoopInvariant, which
works similar to isLoopInvariant, except that it will do trivial hoisting to try to make the value loop invariant if it isn't already. This makes it easier for transformation passes to clear trivial instructions out of the way (the regular LICM pass doesn't run until relatively late). This is code factored out of LoopSimplify and other places. llvm-svn: 75578
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud