[PATCH] D12341: add unpredictable metadata type for control flow

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 2 10:42:04 PDT 2015


spatel updated this revision to Diff 33823.
spatel added a comment.

Patch updated:
Although we have a decent idea about how a percentage-based unpredictability ratio might be used, we have no producer or consumer of that data today. Therefore, I've made the metadata string empty again in this version of the patch, so it's just treated as a boolean meaning 'completely unpredictable'. That's the use case we have today, and it makes this and the dependent patches slightly simpler. When we have profile data to feed into this metadata, we can decide the exact format of that string with a concrete use case.


http://reviews.llvm.org/D12341

Files:
  docs/LangRef.rst
  include/llvm/IR/IRBuilder.h
  include/llvm/IR/LLVMContext.h
  include/llvm/IR/MDBuilder.h
  lib/IR/LLVMContext.cpp
  lib/IR/MDBuilder.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12341.33823.patch
Type: text/x-patch
Size: 5126 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150902/55e651de/attachment.bin>


More information about the llvm-commits mailing list