[all-commits] [llvm/llvm-project] 8c83bd: [CostModel][X86] Adjust vXi32 multiply costs if it...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Sat Sep 25 08:30:43 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8c83bd3bd4c482b22abf7468687269ba010d36e4
https://github.com/llvm/llvm-project/commit/8c83bd3bd4c482b22abf7468687269ba010d36e4
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2021-09-25 (Sat, 25 Sep 2021)
Changed paths:
M llvm/lib/Target/X86/X86TargetTransformInfo.cpp
M llvm/test/Analysis/CostModel/X86/mul32.ll
M llvm/test/Analysis/CostModel/X86/slm-arith-costs.ll
M llvm/test/Transforms/LoopVectorize/X86/mul_slm_16bit.ll
Log Message:
-----------
[CostModel][X86] Adjust vXi32 multiply costs if it can be performed using PMADDWD
Update the costs to match the codegen from combineMulToPMADDWD - not only can we use PMADDWD is its zero-extended, but also if its a constant or sign-extended from a vXi16 (which can be replaced with a zero-extension).
More information about the All-commits
mailing list