[all-commits] [llvm/llvm-project] 2c2568: [InstCombine] canonicalize select with signbit test

Sanjay Patel via All-commits all-commits at lists.llvm.org
Thu Apr 14 11:29:01 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2c2568f39ec641aa8f1dcc011f2ce642c2d3423f
      https://github.com/llvm/llvm-project/commit/2c2568f39ec641aa8f1dcc011f2ce642c2d3423f
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-04-14 (Thu, 14 Apr 2022)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
    M llvm/test/Transforms/InstCombine/ashr-lshr.ll
    M llvm/test/Transforms/InstCombine/logical-select.ll
    M llvm/test/Transforms/InstCombine/truncating-saturate.ll

  Log Message:
  -----------
  [InstCombine] canonicalize select with signbit test

This is part of solving issue #54750 - in that example
we have both forms of the compare and do not recognize
the equivalence.




More information about the All-commits mailing list