[PATCH] D12341: add llvm.unpredictable intrinsic and lower it to metadata

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 27 09:19:22 PDT 2015


spatel added a comment.

Thanks, Krzysztof!

I agree that the existing code in LowerExpectIntrinsic can be improved, but I didn't want to overlap more changes in this patch. How about if I mark them with 'FIXME' comments for now.

I'm also wondering if anyone knows why we have an intrinsic and special lowering for llvm.expect in the first place? Couldn't this be metadata from the start? I looked back at the original commit, but I don't see any discussion/example of the use-case for an intrinsic rather than metadata.


http://reviews.llvm.org/D12341





More information about the llvm-commits mailing list