[all-commits] [llvm/llvm-project] 26748b: [InstCombine] Slightly relax one-use check in abs ...

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Mar 1 06:07:06 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 26748bb15a2d9895b7ea8e943ed95e055f808032
      https://github.com/llvm/llvm-project/commit/26748bb15a2d9895b7ea8e943ed95e055f808032
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-03-01 (Tue, 01 Mar 2022)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
    M llvm/test/Transforms/InstCombine/abs-1.ll
    M llvm/test/Transforms/LoopVectorize/induction.ll

  Log Message:
  -----------
  [InstCombine] Slightly relax one-use check in abs canonicalization

Treat the icmp and sub symmetrically, and require that one of them
has one use, not the icmp in particular. This could be further
relaxed in the abs (but not nabs) case to not check one-use at
all.




More information about the All-commits mailing list