[all-commits] [llvm/llvm-project] 5bf4ab: [InstCombine] add tests for inc/dec with min/max; NFC

RotateRight via All-commits all-commits at lists.llvm.org
Wed Aug 11 09:48:26 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5bf4ab0e79e1a8552019918a662bdf7af8b3825a
      https://github.com/llvm/llvm-project/commit/5bf4ab0e79e1a8552019918a662bdf7af8b3825a
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-08-11 (Wed, 11 Aug 2021)

  Changed paths:
    M llvm/test/Transforms/InstCombine/icmp-add.ll

  Log Message:
  -----------
  [InstCombine] add tests for inc/dec with min/max; NFC


  Commit: a0a9c9e188f5b97ff8b74287d1536f57ec5dda54
      https://github.com/llvm/llvm-project/commit/a0a9c9e188f5b97ff8b74287d1536f57ec5dda54
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-08-11 (Wed, 11 Aug 2021)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
    M llvm/test/Transforms/InstCombine/icmp-add.ll

  Log Message:
  -----------
  [InstCombine] avoid breaking up min/max (cmp+sel) idioms

This is a quick fix for a motivating case that looks like this:
https://godbolt.org/z/GeMqzMc38

As noted, we might be able to restore the min/max patterns
with select folds, or we just wait for this to become easier
with canonicalization to min/max intrinsics.


Compare: https://github.com/llvm/llvm-project/compare/8fa16cc628cb...a0a9c9e188f5


More information about the All-commits mailing list