[PATCH] D101494: [SimplifyCFG] Ignore ephemeral values when counting insts for threading

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 29 10:03:55 PDT 2021


nikic added a reviewer: nikic.
nikic added a comment.

Unless I'm missing something, this has a cache invalidation issue and will likely lead to non-deterministic builds. Say you have a dead block with an assume, which gets added to ephemeral values. Then that block and the instructions in it are removed. Now EphValues contains dangling pointers. Then new instructions get allocated and reuse the same memory. Now EphValues claims that values are ephemeral that aren't ephemeral.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D101494



More information about the llvm-commits mailing list