[all-commits] [llvm/llvm-project] c99e17: [InstCombine] Pre-commit ashr(or(neg(x), x), bw-1) -...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Tue Jul 13 05:50:27 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c99e17fef5f34ac536192fa7b915641f1962c7b9
      https://github.com/llvm/llvm-project/commit/c99e17fef5f34ac536192fa7b915641f1962c7b9
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-07-13 (Tue, 13 Jul 2021)

  Changed paths:
    M llvm/test/Transforms/InstCombine/sub-ashr-or-to-icmp-select.ll
    A llvm/test/Transforms/InstCombine/sub-lshr-or-to-icmp-select.ll

  Log Message:
  -----------
  [InstCombine] Pre-commit ashr(or(neg(x),x),bw-1) --> sext(icmp_ne(x,0)) tests from D105764

Added 'thwart complexity-based canonicalization' hacks and the lshr(or(neg(x),x),bw-1) --> zext(icmp_ne(x,0)) variants suggested by Sanjay.




More information about the All-commits mailing list