[PATCH] D33865: Mark llvm.*annotation intrinsics as NoMem and Speculatable

Marek Olšák via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 20 03:42:59 PDT 2017


mareko added a comment.

In https://reviews.llvm.org/D33865#784977, @sanjoy wrote:

> How do you use these integer annotations?  If you're using them solely as optimization information (i.e. dropping them would be correct, but perhaps undesirable), it may be better to use metadata here.


The annotations are used to generate different/better LLVM IR next time we do the compilation. Dropping them would be incorrect. They need to be preserved at all costs.


https://reviews.llvm.org/D33865





More information about the llvm-commits mailing list