[PATCH] D113872: [CGP] Handle select instructions relying on the same condition
Sotiris Apostolakis via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 7 10:27:28 PST 2021
apostolakis added inline comments.
================
Comment at: llvm/lib/CodeGen/CodeGenPrepare.cpp:6590-6592
+ // FIXME: InstructionCost is not measured at cycle dimension, but
+ // MispredictPenalty is, so we can't compare getUserCost and MispredictPenalty
+ // directly.
----------------
Not certain but wouldn't `TTI->getInstructionCost(I, TargetTransformInfo::TCK_Latency)` return cycle latency of an instruction?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113872/new/
https://reviews.llvm.org/D113872
More information about the llvm-commits
mailing list