&gt; Compiling the same code to x86 and ARM will have the same IR<p>This is incorrect.  Clang has specific code paths (producing different IR) for x86 and ARM, specifically around calling conventions but I&#x27;m sure there are more.