[PATCH] D12458: [clang] add __builtin_unpredictable and convert to metadata
Sanjay Patel via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 31 08:34:46 PDT 2015
spatel added inline comments.
================
Comment at: lib/CodeGen/CodeGenFunction.cpp:1238
@@ -1217,3 +1237,3 @@
}
- Builder.CreateCondBr(CondV, TrueBlock, FalseBlock, Weights);
+ Builder.CreateCondBr(CondV, TrueBlock, FalseBlock, Weights, Unpredictable);
}
----------------
spatel wrote:
> kparzysz wrote:
> > Is the definition of CreateCondBr actually updated somewhere? I didn't see it in any other patch.
> Yes - please see the 2nd hunk in IRBuilder.h in D12341.
[the previous reply didn't make it to the commits list...trying again]
Yes - please see the 2nd hunk in IRBuilder.h in D12341.
http://reviews.llvm.org/D12458
More information about the cfe-commits
mailing list