Fix test case added by D79830
Rewrite the test case, which did similar thing as builtin-expect.c does(test generated llvm intrinsic instead of test branch weights).
Currently pass by "-disable-llvm-passes" option.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
1 suggestion to the test, but otherwise looks OK. Let me know if you'd like this committed for you.
clang/test/CodeGen/builtin-expect-with-probability.cpp | ||
---|---|---|
48 | You might consider making this 'extern C' so that you can do a more exact check on line 53. |
Comment Actions
Fixed. If it looks good to you, could you please help me commit it? Thank you very much!
clang-format: please reformat the code