[all-commits] [llvm/llvm-project] 33b2c8: [LoopFlatten] Widen IV, support ZExt.

sjoerdmeijer via All-commits all-commits at lists.llvm.org
Mon Nov 23 00:58:16 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 33b2c88fa8223dbf15846ce18cc957e33e0d67fc
      https://github.com/llvm/llvm-project/commit/33b2c88fa8223dbf15846ce18cc957e33e0d67fc
  Author: Sjoerd Meijer <sjoerd.meijer at arm.com>
  Date:   2020-11-23 (Mon, 23 Nov 2020)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopFlatten.cpp
    M llvm/test/Transforms/LoopFlatten/widen-iv.ll

  Log Message:
  -----------
  [LoopFlatten] Widen IV, support ZExt.

I disabled the widening in fa5cb4b because it run in an assert, which was
related to replacing values with different types. I forgot that an extend could
also be a zero-extend, which I have added now. This means that the approach now
is to create and insert a trunc value of the outerloop for each user, and use
that to replace IV values.

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




More information about the All-commits mailing list