This is a NFC patch.
Moving the codes to isHardwareLoopProfitable() can avoid duplicated codes for HardwareLoops::TryConvertLoop() and the new added target hook canSaveCmp() in https://reviews.llvm.org/D63477
Paths
| Differential D63805
[HardwareLoops] NFC - move loop with irreducible control flow checking logic to isHardwareLoopProfitable() ClosedPublic Authored by shchenz on Jun 25 2019, 9:51 PM.
Details
Summary This is a NFC patch. Moving the codes to isHardwareLoopProfitable() can avoid duplicated codes for HardwareLoops::TryConvertLoop() and the new added target hook canSaveCmp() in https://reviews.llvm.org/D63477
Diff Detail Event TimelineThis revision is now accepted and ready to land.Jun 26 2019, 12:27 AM Comment Actions codes moved to class TargetTransformInfo can not be called by both class HardwareLoops and class PPCTargetTransformInfo.
Revision Contents
Diff 206580 llvm/include/llvm/Analysis/TargetTransformInfo.h
llvm/lib/Analysis/TargetTransformInfo.cpp
llvm/lib/CodeGen/HardwareLoops.cpp
|