[all-commits] [llvm/llvm-project] 6e4cea: [AArch64] Fix cost model for `udiv` instruction wh...
Zain Jaffal via All-commits
all-commits at lists.llvm.org
Mon Nov 28 00:43:00 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6e4cea55f0d1104408b26ac574566a0e4de48036
https://github.com/llvm/llvm-project/commit/6e4cea55f0d1104408b26ac574566a0e4de48036
Author: Zain Jaffal <z_jaffal at apple.com>
Date: 2022-11-28 (Mon, 28 Nov 2022)
Changed paths:
M llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
M llvm/test/Analysis/CostModel/AArch64/div.ll
Log Message:
-----------
[AArch64] Fix cost model for `udiv` instruction when one of the operands is a uniform constant
Currently the model over estimates the cost of a udiv instruction with one constant. The correct cost for a udiv instruction is
insert_cost * extract_cost * num_elements
Reviewed By: dmgreen
Differential Revision: https://reviews.llvm.org/D135991
More information about the All-commits
mailing list