[all-commits] [llvm/llvm-project] b8e345: PR46874: Reset stack after visiting a node

Aditya Kumar via All-commits all-commits at lists.llvm.org
Fri Aug 20 11:28:49 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b8e345b266748e0c931e389c00748b59f39302ae
      https://github.com/llvm/llvm-project/commit/b8e345b266748e0c931e389c00748b59f39302ae
  Author: Aditya Kumar <1894981+hiraditya at users.noreply.github.com>
  Date:   2021-08-20 (Fri, 20 Aug 2021)

  Changed paths:
    M llvm/lib/Transforms/Scalar/GVNHoist.cpp
    A llvm/test/Transforms/GVNHoist/hoist-pr46874.ll
    M llvm/test/Transforms/GVNHoist/pr37445.ll

  Log Message:
  -----------
  PR46874: Reset stack after visiting a node

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.

Differential Revision: https://reviews.llvm.org/D108425




More information about the All-commits mailing list