[all-commits] [llvm/llvm-project] 26708f: Revert rG057db2002bb3: [X86] combineAndnp - consta...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Fri Jul 1 02:36:33 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 26708fa166d7fde12549a2e1394ca19a85e4f435
      https://github.com/llvm/llvm-project/commit/26708fa166d7fde12549a2e1394ca19a85e4f435
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-07-01 (Fri, 01 Jul 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:
  -----------
  Revert rG057db2002bb3: [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.

Reverted due to reports from @alexfh about it causing an infinite loop (repro still pending).




More information about the All-commits mailing list