[PATCH] D150179: [GlobalISel] Hide hoisted constants behind G_BITCAST to prevent folding.

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 23 03:24:58 PDT 2023


arsenm added a comment.

In D150179#4357513 <https://reviews.llvm.org/D150179#4357513>, @aemerson wrote:

>> For instance, a `G_OPAQUE` instruction like that could be used to prevent infinite combine loop between the target-independent and target combine rules. If the target combine wants to create a pattern that isn't considered optimal by the generic combiner, it could use that opaque instruction to prevent further optimizations.
>
> Yeah, I think that's ok too.

Isn't this what the DAG does? There are opaque constants


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D150179



More information about the llvm-commits mailing list