[all-commits] [llvm/llvm-project] 4b1414: [GVN] Skip debug instructions in findDominatingVal...

Sergey Kachkov via All-commits all-commits at lists.llvm.org
Wed Sep 13 01:23:40 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4b14148d24db8545a3ea7cc84853a97a822cae3a
      https://github.com/llvm/llvm-project/commit/4b14148d24db8545a3ea7cc84853a97a822cae3a
  Author: Sergey Kachkov <109674256+skachkov-sc at users.noreply.github.com>
  Date:   2023-09-13 (Wed, 13 Sep 2023)

  Changed paths:
    M llvm/lib/Transforms/Scalar/GVN.cpp
    A llvm/test/Transforms/GVN/load-through-select-dbg.ll

  Log Message:
  -----------
  [GVN] Skip debug instructions in findDominatingValue function (#65977)

findDominatingValue has a search limit, and when it is reached, optimization is
not applied. This patch fixes the issue that this limit also takes into account
debug intrinsics, so the result of optimization can depend from the presence of
debug info.




More information about the All-commits mailing list