[PATCH] D146823: [GVN] Avoid replacing uniforms with non-uniforms in propagateEquality

Justin Bogner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 24 09:58:50 PDT 2023


bogner created this revision.
bogner added reviewers: foad, arsenm.
Herald added subscribers: StephenFan, hiraditya, mcrosier.
Herald added a project: All.
bogner requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

When propagating equality, avoid replacing values that are known to be
uniform when that will lead to information loss, since that's very
likely to pessimize performance.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D146823

Files:
  llvm/include/llvm/Transforms/Scalar/GVN.h
  llvm/lib/Transforms/Scalar/GVN.cpp
  llvm/test/Transforms/GVN/uniform-values.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146823.508141.patch
Type: text/x-patch
Size: 6060 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230324/52facd46/attachment.bin>


More information about the llvm-commits mailing list