[PATCH] D60554: Fix number of args of prof branch_weights MD for SwitchInst

Yevgeny Rouban via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 20 20:22:42 PDT 2019


yrouban abandoned this revision.
yrouban marked an inline comment as done.
yrouban added a comment.

See 62122 and its children.



================
Comment at: llvm/lib/IR/Verifier.cpp:2453
+          Assert(mdconst::dyn_extract<ConstantInt>(ProfileData->getOperand(i)),
+                 "!prof brunch_weights operand is not a const int");
+      }
----------------
add the following from BranchProbabilityInfo
  assert(Weight->getValue().getActiveBits() <= 32 && "Too many bits for uint32_t");


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

https://reviews.llvm.org/D60554





More information about the llvm-commits mailing list