[PATCH] D64197: [HardwareLoops] NFC - move hardware loop checking code to isHardwareLoopProfitable()
ChenZheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 4 01:38:37 PDT 2019
shchenz created this revision.
shchenz added reviewers: hfinkel, samparker, jsji, nemanjai, qshanz.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
Move more hardware checking codes into `isHardwareLoopProfitable()`:
1: a more accurate result about hardware loop converting for target hook `canSaveCmp()` (Currently only used in PowerPC)
2: counter `NumHWLoops` is also more accurate.
This is a NFC patch.
https://reviews.llvm.org/D64197
Files:
llvm/include/llvm/Analysis/TargetTransformInfo.h
llvm/lib/Analysis/TargetTransformInfo.cpp
llvm/lib/CodeGen/HardwareLoops.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64197.207985.patch
Type: text/x-patch
Size: 7361 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190704/7f0e7d8a/attachment.bin>
More information about the llvm-commits
mailing list