[PATCH] D141712: [GVN] Improve PRE on load instructions

Mikael Holmén via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 27 04:16:19 PST 2023


uabelho added a comment.

Hello!

It seems that with this patch GVN may yield different results when debug info is present.
I suspect the MaxNumInsnsPerBlock limit includes also debug instructions?
This is seen with the following example:

  opt -passes=gvn bbi-78272.ll -S -o -

If you remove some dbg.declare from the input you get different output.

F26275686: bbi-78272.ll <https://reviews.llvm.org/F26275686>


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D141712/new/

https://reviews.llvm.org/D141712



More information about the llvm-commits mailing list