topperc wrote: > Do you know why the `G_CONSTANT_FOLD_BARRIER` was created in the first place? I think it is created for constants hoisted by the ConstantHoisting pass. https://github.com/llvm/llvm-project/pull/89960