[PATCH] D62444: [CostModel] Add really basic support for being able to query the cost of the FNeg instruction.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 24 22:55:35 PDT 2019
craig.topper created this revision.
craig.topper added reviewers: RKSimon, spatel, andrew.w.kaylor, cameron.mcinally.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
This reuses the getArithmeticInstrCost, but passes dummy values of the second
operand flags.
The X86 costs are wrong and can be improved in a follow up. I just wanted to
stop it from reporting an unknown cost first.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D62444
Files:
llvm/lib/Analysis/TargetTransformInfo.cpp
llvm/test/Analysis/CostModel/X86/arith-fp.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62444.201390.patch
Type: text/x-patch
Size: 27157 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190525/acde8719/attachment.bin>
More information about the llvm-commits
mailing list