Skip to content
Commit b43a1d1b authored by Wolfgang Pieb's avatar Wolfgang Pieb
Browse files

[PGO] Do not create block count annotations when all weights are 0,

avoiding an assertion.

A BB with a nonzero count, whose successor blocks all have 0 counts, could
cause an assertion. Don't create any branch weights in this case.

Reviewed By: xur

Differential Revision: https://reviews.llvm.org/D134203
parent 1532be98
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment