[PATCH] D128860: [llvm][NFC] Refactor code to use ProfDataUtils
Paul Kirth via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 26 13:53:12 PDT 2022
paulkirth added inline comments.
================
Comment at: llvm/lib/IR/Metadata.cpp:1521
+ assert(
+ (getOpcode() == Instruction::Br || getOpcode() == Instruction::Select) &&
+ "Looking for branch weights on something besides branch or select");
----------------
This should either be removed, or also check for switch stmts. Well, anything branch weights may be attached to
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D128860/new/
https://reviews.llvm.org/D128860
More information about the llvm-commits
mailing list