[Test] Add a unit test exposing lack of SCEV invalidation in LICM during code hoistin...
authorSerguei Katkov <serguei.katkov@azul.com>
Thu, 31 Oct 2019 10:05:57 +0000 (17:05 +0700)
committerSerguei Katkov <serguei.katkov@azul.com>
Thu, 31 Oct 2019 10:16:57 +0000 (17:16 +0700)
commitb32bae6f760896b0e285fb6967061e8cd281a8c1
tree8845edd3f2450d95c6223e514a9156138087db49
parente46c6644db8432584e82ef7ddfc9d0f36543f205
[Test] Add a unit test exposing lack of SCEV invalidation in LICM during code hoisting. NFC.

This unit test exposes a bug in LICM: when it hoists instructions it doesn't invalidate SCEV accordingly.
Similar test exposing lack of SCEV invalidation during code sinking will be submitted as a follow-up change.

Patch Author: Daniil Suchkov
Reviewers: mkazantsev, asbirlea, reames
Reviewed By: asbirlea
Subscribers: mgorny, javed.absar, llvm-commits
Differential Revision: https://reviews.llvm.org/D69369
llvm/unittests/Transforms/Scalar/CMakeLists.txt
llvm/unittests/Transforms/Scalar/LICMTest.cpp [new file with mode: 0644]