The callbr instruction's indirect destinations are expected to be within
the current function. Extracting them will cause chaos as the callbr
will then want to branch to a label in another function, which isn't
allowed.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 41749 Build 42042: arc lint + arc unit
Event Timeline
Comment Actions
Could you add a test?
llvm/lib/Transforms/IPO/HotColdSplitting.cpp | ||
---|---|---|
135 | nit: const BasicBlock &PredBB : predecessors(BB)? |
nit: const BasicBlock &PredBB : predecessors(BB)?