[PATCH] D60604: [IR] Improve SwitchInst API to support prof branch_weights

Yevgeny Rouban via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 12 04:13:41 PDT 2019


yrouban marked an inline comment as done.
yrouban added inline comments.


================
Comment at: llvm/lib/IR/Instructions.cpp:3783
+  assert(BI <= SI->getNumSuccessors() && "case index is in range");
+  uint32_t SW = 0;
+  SmallVector<uint32_t, 8> Weights;
----------------
must be //uint64_t//


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

https://reviews.llvm.org/D60604





More information about the llvm-commits mailing list