[PATCH] D63478: [HardwareLoops] NFC - move some hardware loop judgement code to a common place for other using

ChenZheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 18 01:34:36 PDT 2019


shchenz created this revision.
shchenz added reviewers: samparker, hfinkel, jsji, nemanjai, stefanp.
Herald added subscribers: kbarton, hiraditya, javed.absar.
Herald added a project: LLVM.

Need to get conclusion that whether the loop can be converted to a hardware loop in some previous pass like LSR.

Move some code to structure `HardwareLoopInfo`, so that other pass can use it. This is a NFC patch.

Whole picture can be found in https://reviews.llvm.org/D63477


https://reviews.llvm.org/D63478

Files:
  llvm/include/llvm/Analysis/TargetTransformInfo.h
  llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
  llvm/include/llvm/CodeGen/BasicTTIImpl.h
  llvm/lib/Analysis/TargetTransformInfo.cpp
  llvm/lib/CodeGen/HardwareLoops.cpp
  llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
  llvm/lib/Target/ARM/ARMTargetTransformInfo.h
  llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
  llvm/lib/Target/PowerPC/PPCTargetTransformInfo.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63478.205267.patch
Type: text/x-patch
Size: 14362 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190618/7c9af451/attachment.bin>


More information about the llvm-commits mailing list