OSDN Git Service

Re-commit : [LICM] Allow sinking when foldable in loop
authorJun Bum Lim <junbuml@codeaurora.org>
Fri, 15 Dec 2017 17:58:59 +0000 (17:58 +0000)
committerJun Bum Lim <junbuml@codeaurora.org>
Fri, 15 Dec 2017 17:58:59 +0000 (17:58 +0000)
commit33f616e3dc4eb1f5b87cb7d669de77059fb70b74
tree32f5027ff4044391583b2ba40d33076df607cde9
parent6469bc65e33d0f2f3e0577a5f82ddb34d310f818
Re-commit : [LICM] Allow sinking when foldable in loop

 This recommit r320823 after fixing a test failure.

 Original commit message:

    Continue trying to sink an instruction if its users in the loop is foldable.
    This will allow the instruction to be folded in the loop by decoupling it from
    the user outside of the loop.

    Reviewers: hfinkel, majnemer, davidxl, efriedma, danielcdh, bmakam, mcrosier

    Reviewed By: hfinkel

    Subscribers: javed.absar, bmakam, mcrosier, llvm-commits

    Differential Revision: https://reviews.llvm.org/D37076

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320833 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Utils/LoopUtils.h
lib/Transforms/Scalar/LICM.cpp
test/Transforms/LICM/sink-foldable.ll [new file with mode: 0644]