[all-commits] [llvm/llvm-project] ea86fb: [InstCombine] Fold zext-of-icmp with no shift (#68...

Allen via All-commits all-commits at lists.llvm.org
Mon Oct 9 08:46:22 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ea86fb8cafcce2642f5b45be65a5883a42be1e95
      https://github.com/llvm/llvm-project/commit/ea86fb8cafcce2642f5b45be65a5883a42be1e95
  Author: Allen <zhongyunde at huawei.com>
  Date:   2023-10-09 (Mon, 09 Oct 2023)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
    M llvm/test/Transforms/InstCombine/zext.ll

  Log Message:
  -----------
  [InstCombine] Fold zext-of-icmp with no shift (#68503)

This regression triggers after commit f400daa to fix infinite loop
issue.

In this case, we can known the shift count is 0, so it will not be
triggered by the form of (iN (~X) u>> (N - 1)) in commit 21d3871, of
which N indicates the data type bitwidth of X.

Fixes https://github.com/llvm/llvm-project/issues/68465.




More information about the All-commits mailing list