[all-commits] [llvm/llvm-project] ab1f6f: [GVN] Improve analysis for missed optimization remark

anemet via All-commits all-commits at lists.llvm.org
Mon May 17 21:52:01 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ab1f6ffa566ba1f6c7994da130380e6f258f580c
      https://github.com/llvm/llvm-project/commit/ab1f6ffa566ba1f6c7994da130380e6f258f580c
  Author: Adam Nemet <anemet at apple.com>
  Date:   2021-05-17 (Mon, 17 May 2021)

  Changed paths:
    M llvm/lib/Transforms/Scalar/GVN.cpp
    A llvm/test/Transforms/GVN/opt-remarks-multiple-users.ll
    A llvm/test/Transforms/GVN/opt-remarks-non-dominating.ll

  Log Message:
  -----------
  [GVN] Improve analysis for missed optimization remark

This change tries to handle multiple dominating users of the pointer operand
by choosing the most immediately dominating one, if possible.  While making
this change I also found that the previous implementation had a missing break
statement, making all loads with an odd number of dominating users emit an
OtherAccess value, so that has also been fixed.

Patch by Henrik G Olsson!

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




More information about the All-commits mailing list