[all-commits] [llvm/llvm-project] a46b95: [InstCombine] More usub_sat tests. NFC.

David Green via All-commits all-commits at lists.llvm.org
Sat Nov 30 09:40:11 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a46b959ebd605e9dc4bc0e041dac3bdf2f3d8989
      https://github.com/llvm/llvm-project/commit/a46b959ebd605e9dc4bc0e041dac3bdf2f3d8989
  Author: David Green <david.green at arm.com>
  Date:   2019-11-30 (Sat, 30 Nov 2019)

  Changed paths:
    M llvm/test/Transforms/InstCombine/builtin-dynamic-object-size.ll
    M llvm/test/Transforms/InstCombine/unsigned_saturated_sub.ll

  Log Message:
  -----------
  [InstCombine] More usub_sat tests. NFC.


  Commit: 3a1bef5616c3eb466b5f8a076385ee09e5a9ad9a
      https://github.com/llvm/llvm-project/commit/3a1bef5616c3eb466b5f8a076385ee09e5a9ad9a
  Author: David Green <david.green at arm.com>
  Date:   2019-11-30 (Sat, 30 Nov 2019)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
    M llvm/test/Transforms/InstCombine/unsigned_saturated_sub.ll

  Log Message:
  -----------
  [InstCombine] Adjust usub_sat fold one use checks

This adjusts the one use checks in the the usub_sat fold code to not
increase instruction count, but otherwise do the fold. Reviewed as a
part of D69514.


  Commit: 59b56e5c579c51e1333b4c6e96d127f50f191c14
      https://github.com/llvm/llvm-project/commit/59b56e5c579c51e1333b4c6e96d127f50f191c14
  Author: David Green <david.green at arm.com>
  Date:   2019-11-30 (Sat, 30 Nov 2019)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
    M llvm/test/Transforms/InstCombine/builtin-dynamic-object-size.ll
    M llvm/test/Transforms/InstCombine/unsigned_saturated_sub.ll

  Log Message:
  -----------
  [InstCombine] Expand usub_sat patterns to handle constants

The constants come through as add %x, -C, not a sub as would be
expected. They need some extra matchers to canonicalise them towards
usub_sat.

Differential Revision: https://reviews.llvm.org/D69514


Compare: https://github.com/llvm/llvm-project/compare/3f4b70c79e68...59b56e5c579c


More information about the All-commits mailing list