[all-commits] [llvm/llvm-project] bc17d3: [LoopIdiom] Let LIR fold memset pointer / stride S...

Yueh-Ting (eop) Chen via All-commits all-commits at lists.llvm.org
Mon Dec 13 09:37:12 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bc17d32a5f71b161186423c200554bddb6fb7e43
      https://github.com/llvm/llvm-project/commit/bc17d32a5f71b161186423c200554bddb6fb7e43
  Author: eopXD <yueh.ting.chen at gmail.com>
  Date:   2021-12-13 (Mon, 13 Dec 2021)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
    M llvm/test/Transforms/LoopIdiom/memset-runtime-32bit.ll
    M llvm/test/Transforms/LoopIdiom/memset-runtime-64bit.ll
    M llvm/test/Transforms/LoopIdiom/memset-runtime-debug.ll

  Log Message:
  -----------
  [LoopIdiom] Let LIR fold memset pointer / stride SCEV regarding loop guards

Expression guraded in loop entry can be folded prior to comparison. This patch
proceeds D107353 and makes LIR able to deal with nested for-loop.

Reviewed By: qianzhen, bmahjour

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




More information about the All-commits mailing list