[PATCH] D142787: [GVN] Don't count debug instructions when limit the number of checked instructions

Guozhi Wei via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 27 15:29:17 PST 2023


Carrot created this revision.
Carrot added reviewers: mkazantsev, nikic, uabelho.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
Carrot requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Don't count debug instructions when limit the number of checked instructions. Otherwise the debug information may impact optimization like the test case shows.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D142787

Files:
  llvm/lib/Transforms/Scalar/GVN.cpp
  llvm/test/Transforms/GVN/PRE/pre-load-dbg.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142787.492920.patch
Type: text/x-patch
Size: 21068 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230127/04919f9f/attachment.bin>


More information about the llvm-commits mailing list