[all-commits] [llvm/llvm-project] ca94b0: [MergeICmps] Adapt to non-eq comparisons, bugfix

Allen via All-commits all-commits at lists.llvm.org
Tue Apr 25 04:41:41 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ca94b02e559242e6d1fcdd65320334438be69448
      https://github.com/llvm/llvm-project/commit/ca94b02e559242e6d1fcdd65320334438be69448
  Author: Zhongyunde <zhongyunde at huawei.com>
  Date:   2023-04-25 (Tue, 25 Apr 2023)

  Changed paths:
    M llvm/lib/Transforms/Scalar/MergeICmps.cpp
    A llvm/test/Transforms/MergeICmps/X86/pr59740.ll

  Log Message:
  -----------
  [MergeICmps] Adapt to non-eq comparisons, bugfix

Fix the last runtime issue as some sequent comparisons need be spilted.
For the origin equal comparisons chain, the new spilted Icmp chain will
still be end with equal, while for the new not-equal comparisons chain,
the new spilted Icmp chain will still be end with equal, so should address
this carefully, see detail wih case partial_sequent_ne

Thanks for @aeubanks, @glandium and @ayzhao report the runtime issue
and carefully examine.
Fix https://github.com/llvm/llvm-project/issues/59740.

Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D141188




More information about the All-commits mailing list