[all-commits] [llvm/llvm-project] f7b5f0: [DAG] Fold (and X, (rot (not Y), Z)) -> (and X, (n...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Wed Oct 30 03:46:50 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f7b5f0c805c899b59bcc37279a0a05dca35d3a25
https://github.com/llvm/llvm-project/commit/f7b5f0c805c899b59bcc37279a0a05dca35d3a25
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2024-10-30 (Wed, 30 Oct 2024)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
M llvm/test/CodeGen/X86/andnot-patterns.ll
Log Message:
-----------
[DAG] Fold (and X, (rot (not Y), Z)) -> (and X, (not (rot Y, Z)))
On ANDNOT capable targets we can always do this profitably, without ANDNOT we only attempt this if we don't introduce an additional NOT
Followup to #112547
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