mehdi_amini added a comment. FWIW I agree with @mzolotukhin and I'm not a fan of using a metadata to achieve this: I rather have a principled way of deciding what to do / reach idempotent state just by looking at the code. https://reviews.llvm.org/D22630