[all-commits] [llvm/llvm-project] 7831c5: [VectorCombine] Pull out TargetCostKind argument t...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Mon Dec 9 04:05:28 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7831c5e4831963425279db7b1c4d23cfa9da9674
https://github.com/llvm/llvm-project/commit/7831c5e4831963425279db7b1c4d23cfa9da9674
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2024-12-09 (Mon, 09 Dec 2024)
Changed paths:
M llvm/lib/Transforms/Vectorize/VectorCombine.cpp
Log Message:
-----------
[VectorCombine] Pull out TargetCostKind argument to allow globally set cost kind value (#118652)
Don't use TCK_RecipThroughput independently in every VectorCombine fold.
Some prep work to allow a potential future patch to use VectorCombine to optimise for code size for -Os/Oz builds (setting TCK_CodeSize instead of TCK_RecipThroughput).
There's still more cleanup to do as a lot of get*Cost calls are relying on the default TargetCostKind value (usually TCK_RecipThroughput but not always).
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list