1. [LICM] Invalidate SCEV upon instruction hoisting (details)
Commit 1eb04d289a6fb4c7cb75f69312a7b949987e7c97 by serguei.katkov
[LICM] Invalidate SCEV upon instruction hoisting
Since SCEV can cache information about location of an instruction, it
should be invalidated when the instruction is moved. There should be
similar bug in code sinking part of LICM, it will be fixed in a
follow-up change.
Patch Author: Daniil Suchkov Reviewers: asbirlea, mkazantsev, reames
Reviewed By: asbirlea Subscribers: hiraditya, javed.absar, llvm-commits
Differential Revision:
The file was modifiedllvm/unittests/Transforms/Scalar/LICMTest.cpp
The file was modifiedllvm/lib/Transforms/Scalar/LICM.cpp
The file was modifiedllvm/include/llvm/Transforms/Utils/LoopUtils.h