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

Pierre van Houtryve via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 9 00:43:36 PDT 2023


Pierre-vh accepted this revision.
Pierre-vh added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp:85
+  getActionDefinitionsBuilder(
+      {G_IMPLICIT_DEF, G_FREEZE, G_CONSTANT_FOLD_BARRIER})
       .legalFor({p0, s8, s16, s32, s64})
----------------
Will other targets (e.g. AMDGPU) need this?


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