Issue 91919
Summary LICM drop call instruction metadata
Labels new issue
Assignees
Reporter RonDahan101
    In LICM.cpp::cloneInstructionInExitBlock, we have a special treatment for call instructions. However, in the end, when we do `New = CallInst::Create(CI, OpBundles);`, therefore original call instruction metadata isn't cloned. We probably need to add `New->copyMetadata(*CI);` after the call instruction creation.

Reproducer:
https://godbolt.org/z/MqTY63KW7

You can see that the 'alias.scope' and 'noalias' metadata were lost.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to