[all-commits] [llvm/llvm-project] 057db2: [X86] combineAndnp - constant fold ANDNP(C, X) -> A...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Tue Jun 21 04:31:23 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 057db2002bb3d79429db3c5fe436c8cefc50cb25
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-06-21 (Tue, 21 Jun 2022)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/combine-udiv.ll
    M llvm/test/CodeGen/X86/insert-into-constant-vector.ll

  Log Message:
  [X86] combineAndnp - constant fold ANDNP(C,X) -> AND(~C,X)

If the LHS op has a single use then using the more general AND op is likely to allow commutation, load folding, generic folds etc.

More information about the All-commits mailing list