[PATCH] D46637: [TTI] Add uniform/non-uniform constant Pow2 detection to TargetTransformInfo::getInstructionThroughput
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 9 05:56:17 PDT 2018
RKSimon created this revision.
RKSimon added reviewers: ABataev, fhahn, mkuper, craig.topper, spatel.
This enables us to detect more fast path sdiv cases under cost analysis (only LV currently use pow2 and only for uniform constants).
This patch also enables us to handle non-uniform-constant pow2 cases for X86 SDIV costs.
Found while working on https://reviews.llvm.org/D46276
Repository:
rL LLVM
https://reviews.llvm.org/D46637
Files:
lib/Analysis/TargetTransformInfo.cpp
lib/Target/X86/X86TargetTransformInfo.cpp
test/Analysis/CostModel/X86/div.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46637.145902.patch
Type: text/x-patch
Size: 91442 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180509/4b05334d/attachment.bin>
More information about the llvm-commits
mailing list