]> granicus.if.org Git - llvm/commit
[LICM] Only recompute LCSSA when we actually promoted something.
authorMichael Kuperstein <mkuper@google.com>
Thu, 29 Dec 2016 22:37:13 +0000 (22:37 +0000)
committerMichael Kuperstein <mkuper@google.com>
Thu, 29 Dec 2016 22:37:13 +0000 (22:37 +0000)
commitee2191d8778103265f901781b279a7bcbcf00b12
tree87b036a1260ac6ea00f3deebcdc42e02f8d31896
parenta250bf162b554acee20e1aee7988b3a7ed387493
[LICM] Only recompute LCSSA when we actually promoted something.

We want to recompute LCSSA only when we actually promoted a value.
This means we only need to look at changes made by promotion when
deciding whether to recompute it or not, not at regular sinking/hoisting.

(This was what the code was documented as doing, just not what it did)

Hopefully NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290726 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LICM.cpp