Revert "[HardwareLoops] Change order of SCEV expression construction for InitLoopCount."
authorChen Zheng <czhengsz@cn.ibm.com>
Fri, 3 Sep 2021 02:53:31 +0000 (02:53 +0000)
committerChen Zheng <czhengsz@cn.ibm.com>
Fri, 3 Sep 2021 02:55:43 +0000 (02:55 +0000)
commit34badc409cc452575c538c4b6449546adc38f121
tree7e3adcffa17d9b7f74221c432ee05ee7aec1c302
parent79bcd4a7db29e6b0abd60b44ee825f0d49d4f36a
Revert "[HardwareLoops] Change order of SCEV expression construction for InitLoopCount."

This causes https://bugs.llvm.org/show_bug.cgi?id=51714 and
is not a right patch according to comments in D91724

This reverts commit 42eaf4fe0adef3344adfd9fbccd49f325cb549ef.
llvm/include/llvm/Analysis/TargetTransformInfo.h
llvm/lib/Analysis/TargetTransformInfo.cpp
llvm/lib/CodeGen/HardwareLoops.cpp
llvm/test/CodeGen/PowerPC/loop-instr-prep-non-const-increasement.ll
llvm/test/CodeGen/PowerPC/mma-phi-accs.ll