[all-commits] [llvm/llvm-project] 757409: [MergeICmps] Ignore clobbering instructions before...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Aug 27 14:32:13 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 757409da7a69f3b0ab23687642dc5edf2061bc51
      https://github.com/llvm/llvm-project/commit/757409da7a69f3b0ab23687642dc5edf2061bc51
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-08-27 (Fri, 27 Aug 2021)

  Changed paths:
    M llvm/lib/Transforms/Scalar/MergeICmps.cpp
    M llvm/test/Transforms/MergeICmps/X86/gep-references-bb.ll
    M llvm/test/Transforms/MergeICmps/X86/split-block-does-work.ll

  Log Message:
  -----------
  [MergeICmps] Ignore clobbering instructions before the loads

This is another followup to D106591. Even if there is an
instruction that clobbers one of the loads, this doesn't matter if
it happens before the loads. Those instructions aren't affected by
the transform at all.

The gep-references-bb.ll is modified to preserve the spirit of the
test, as the store to @g no longer impacts the transform.

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




More information about the All-commits mailing list