[PATCH] D151945: Introduce G_OPAQUE and use it to prevent constant folding hoisted constants.

Amara Emerson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 5 21:35:13 PDT 2023


aemerson added a comment.

In D151945#4397980 <https://reviews.llvm.org/D151945#4397980>, @tschuett wrote:

> I know that you don't like it, but the meaning of G_OPAQUE was not clear. G_OPAQUE_CONSTANT and G_OPAQUE_OPERATION to prevent constant folding and to prevent generic optimizations.

Ok so you're just talking about renaming this opcode? As a known though G_OPAQUE_CONSTANT would be inaccurate since it's not actually a constant. Perhaps G_CONSTANT_BARRIER or something?

At the moment we have no use case for a generic G_OPAQUE_OPERATION.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D151945



More information about the llvm-commits mailing list