We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2c99a5 commit bce84a4Copy full SHA for bce84a4
llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
@@ -387,7 +387,7 @@ static void buildPartialInvariantUnswitchConditionalBranch(
387
Direction ? &NormalSucc : &UnswitchedSucc, ProfData);
388
if (!ProfData)
389
setExplicitlyUnknownBranchWeightsIfProfiled(
390
- *BR, *BR->getParent()->getParent(), DEBUG_TYPE);
+ *BR, *BR->getFunction(), DEBUG_TYPE);
391
}
392
393
/// Rewrite the PHI nodes in an unswitched loop exit basic block.
0 commit comments