diff options
author | Philip Reames <listmail@philipreames.com> | 2017-10-31 04:19:06 +0000 |
---|---|---|
committer | Philip Reames <listmail@philipreames.com> | 2017-10-31 04:19:06 +0000 |
commit | 39a8dbff8760adfa55942c61d6e75dd432d30875 (patch) | |
tree | a67413409ed1129d7d1cd8fe0e729b6f767f360b /llvm/lib/Analysis/LoopInfo.cpp | |
parent | 668b1ab6f1c5b0c65e4b456f37dba0c2d588b52f (diff) | |
download | bcm5719-llvm-39a8dbff8760adfa55942c61d6e75dd432d30875.tar.gz bcm5719-llvm-39a8dbff8760adfa55942c61d6e75dd432d30875.zip |
[SimplifyIndVar] Extract out invariant expression handling
Previously, the code returned early from the *function* when it couldn't find a free expansion, it should be returning from the *transform*. I don't have a test case, noticed this via inspection.
As a follow up, I'm going to revisit the logic in the extract function. I think that essentially the whole helper routine can be replaced with SCEVExpander, but I wanted to do that in a series of separate commits.
llvm-svn: 316974
Diffstat (limited to 'llvm/lib/Analysis/LoopInfo.cpp')
0 files changed, 0 insertions, 0 deletions