[all-commits] [llvm/llvm-project] 213e30: [DAG] Fold Y = sra (X, size(X)-1); mul (or (Y, 1),...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sat Jun 15 13:10:45 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 213e308633e533f74f04269766989bb89fde0921
      https://github.com/llvm/llvm-project/commit/213e308633e533f74f04269766989bb89fde0921
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2024-06-15 (Sat, 15 Jun 2024)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/test/CodeGen/X86/combine-mul.ll

  Log Message:
  -----------
  [DAG] Fold Y = sra (X, size(X)-1); mul (or (Y, 1), X) -> (abs X)

Similar to InstCombine implementation except we don't have to handle the NSW/is_int_min_poison case.



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