[all-commits] [llvm/llvm-project] 3c0096: [MergeICmps] Don't call comesBefore() if in differ...

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Feb 22 03:27:37 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3c0096a1d45689389e11c385fd4ab98fdec80323
      https://github.com/llvm/llvm-project/commit/3c0096a1d45689389e11c385fd4ab98fdec80323
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-02-22 (Tue, 22 Feb 2022)

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

  Log Message:
  -----------
  [MergeICmps] Don't call comesBefore() if in different blocks (PR53959)

Only call comesBefore() if the instructions are in the same block.
Otherwise make a conservative assumption.

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




More information about the All-commits mailing list