Skip to content

Commit 7ca313e

Browse files
committed
[VPlan] Tweak comment around assume
1 parent 8bb6ca6 commit 7ca313e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2124,7 +2124,8 @@ static void licm(VPlan &Plan) {
21242124
// Return true if we do not know how to (mechanically) hoist a given recipe
21252125
// out of a loop region.
21262126
auto CannotHoistRecipe = [](VPRecipeBase &R) {
2127-
// Assumes don't alias anything or throw.
2127+
// Assumes don't alias anything or throw; as long as they're guaranteed to
2128+
// execute, they're safe to hoist.
21282129
if (match(&R, m_Intrinsic<Intrinsic::assume>()))
21292130
return false;
21302131

0 commit comments

Comments
 (0)