[all-commits] [llvm/llvm-project] 42eaf4: [HardwareLoops] Change order of SCEV expression co...

RoboTux via All-commits all-commits at lists.llvm.org
Tue Nov 24 10:02:00 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 42eaf4fe0adef3344adfd9fbccd49f325cb549ef
      https://github.com/llvm/llvm-project/commit/42eaf4fe0adef3344adfd9fbccd49f325cb549ef
  Author: Janek van Oirschot <janekvo at graphcore.ai>
  Date:   2020-11-24 (Tue, 24 Nov 2020)

  Changed paths:
    M llvm/include/llvm/Analysis/TargetTransformInfo.h
    M llvm/lib/Analysis/TargetTransformInfo.cpp
    M llvm/lib/CodeGen/HardwareLoops.cpp
    M llvm/test/CodeGen/PowerPC/shrink-wrap.ll

  Log Message:
  -----------
  [HardwareLoops] Change order of SCEV expression construction for InitLoopCount.

Putting the +1 before the zero-extend will allow scalar evolution to fold the expression in some cases such as the one shown in PowerPC's `shrink-wrap.ll` test.

Reviewed By: samparker

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




More information about the All-commits mailing list