[all-commits] [llvm/llvm-project] f0bc41: [X86] combineBasicSADPattern - pattern match vario...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Wed Jul 9 00:08:43 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f0bc41181c0fd03069ca63a3b8b0f85e3c7cb477
https://github.com/llvm/llvm-project/commit/f0bc41181c0fd03069ca63a3b8b0f85e3c7cb477
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2025-07-09 (Wed, 09 Jul 2025)
Changed paths:
M llvm/lib/Target/X86/X86ISelLowering.cpp
M llvm/test/CodeGen/X86/sad.ll
Log Message:
-----------
[X86] combineBasicSADPattern - pattern match various vXi8 ABDU patterns (#147570)
We were previously limited to abs(sub(zext(),zext()) patterns, but add
handling for a number of other abdu patterns until a topological sorted
dag allows us to rely on a ABDU node having already been created.
Now that we don't just match zext() sources, I've generalised the
createPSADBW helper to explicitly zext/truncate to the expected vXi8
source type - it still assumes the sources are correct for a PSADBW
node.
Fixes #143456
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