[all-commits] [llvm/llvm-project] 1eb04d: [LICM] Invalidate SCEV upon instruction hoisting

serguei-katkov via All-commits all-commits at lists.llvm.org
Thu Oct 31 03:38:21 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1eb04d289a6fb4c7cb75f69312a7b949987e7c97
      https://github.com/llvm/llvm-project/commit/1eb04d289a6fb4c7cb75f69312a7b949987e7c97
  Author: Serguei Katkov <serguei.katkov at azul.com>
  Date:   2019-10-31 (Thu, 31 Oct 2019)

  Changed paths:
    M llvm/include/llvm/Transforms/Utils/LoopUtils.h
    M llvm/lib/Transforms/Scalar/LICM.cpp
    M llvm/unittests/Transforms/Scalar/LICMTest.cpp

  Log Message:
  -----------
  [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: https://reviews.llvm.org/D69370




More information about the All-commits mailing list