[PATCH] D108425: PR46874: Reset stack after visiting a node

Aditya Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 19 16:36:48 PDT 2021


hiraditya created this revision.
hiraditya added reviewers: sebpop, fhahn, tejohnson.
hiraditya requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

When the stack is not reset it keeps previously visited Basic Block which results in bugs where an instruction is hoisted to a predecessor where the instruction
was not fully anticipable.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D108425

Files:
  llvm/lib/Transforms/Scalar/GVNHoist.cpp
  llvm/test/Transforms/GVNHoist/hoist-pr46874.ll
  llvm/test/Transforms/GVNHoist/pr37445.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108425.367657.patch
Type: text/x-patch
Size: 5269 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210819/1f4eb8db/attachment.bin>


More information about the llvm-commits mailing list