[all-commits] [llvm/llvm-project] 2c4e1d: [InstCombine] Improve foldOpIntoPhi() to use isImp...

Maksim Kita via All-commits all-commits at lists.llvm.org
Tue Aug 1 02:16:28 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2c4e1df9a14c2b115e0d2b99693e650ee0284b06
      https://github.com/llvm/llvm-project/commit/2c4e1df9a14c2b115e0d2b99693e650ee0284b06
  Author: Maksim Kita <kitaetoya at gmail.com>
  Date:   2023-08-01 (Tue, 01 Aug 2023)

  Changed paths:
    M llvm/test/Transforms/InstCombine/phi.ll

  Log Message:
  -----------
  [InstCombine] Improve foldOpIntoPhi() to use isImpliedCondition tests

Precommit tests for D156620.

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


  Commit: 991855ea8a7ff070ca0e22ccba0ff2e96dcdf65b
      https://github.com/llvm/llvm-project/commit/991855ea8a7ff070ca0e22ccba0ff2e96dcdf65b
  Author: Maksim Kita <kitaetoya at gmail.com>
  Date:   2023-08-01 (Tue, 01 Aug 2023)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
    M llvm/test/Transforms/InstCombine/phi.ll

  Log Message:
  -----------
  [InstCombine] Improve foldOpIntoPhi() to use isImpliedCondition

Improve foldOpIntoPhi() for icmp operator to check if incoming PHI value can be replaced with constant based on implied condition.

Depends on D156619.

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


Compare: https://github.com/llvm/llvm-project/compare/f94e9bdc576b...991855ea8a7f


More information about the All-commits mailing list