[PATCH] D79830: Add support of __builtin_expect_with_probability

Lei Zhang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 22 12:22:08 PDT 2020


antiagainst added inline comments.


================
Comment at: llvm/lib/Transforms/Scalar/LowerExpectIntrinsic.cpp:62
+    // __builtin_expect
+    return {LikelyBranchWeight, UnlikelyBranchWeight};
+  } else {
----------------
FYI: this breaks GCC5: https://buildkite.com/mlir/mlir-core/builds/5841#4a7c245b-9841-44aa-a82a-97686b04b672


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79830/new/

https://reviews.llvm.org/D79830





More information about the cfe-commits mailing list