[all-commits] [llvm/llvm-project] 2d3792: [X86] Fold ANDNP(x, -1) -> NOT(x) -> XOR(x, -1)
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Tue Jun 27 10:17:27 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2d3792bef08d32afc67fd523160ace6c40b54e80
https://github.com/llvm/llvm-project/commit/2d3792bef08d32afc67fd523160ace6c40b54e80
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M llvm/lib/Target/X86/X86ISelLowering.cpp
M llvm/test/CodeGen/X86/fpclamptosat_vec.ll
M llvm/test/CodeGen/X86/masked_store_trunc_usat.ll
M llvm/test/CodeGen/X86/psubus.ll
M llvm/test/CodeGen/X86/udiv_fix_sat.ll
M llvm/test/CodeGen/X86/vector-trunc-usat.ll
Log Message:
-----------
[X86] Fold ANDNP(x, -1) -> NOT(x) -> XOR(x, -1)
Prefer XOR to ANDNP as its commutative
Commit: 76a27f3a32f619d386fb8efa1563ba21b76e9170
https://github.com/llvm/llvm-project/commit/76a27f3a32f619d386fb8efa1563ba21b76e9170
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M llvm/lib/Target/X86/X86ISelLowering.cpp
Log Message:
-----------
[X86] Add getBitSelect helper function to create OR(AND(LHS,MASK),AND(RHS,~MASK)) bit select patterns. NFC.
Compare: https://github.com/llvm/llvm-project/compare/4bc76e808517...76a27f3a32f6
More information about the All-commits
mailing list