LLVM: lib/Transforms/Scalar/WarnMissedTransforms.cpp Source File (original) (raw)
27 LLVM_DEBUG(dbgs() << "Leftover unroll transformation\n");
30 "FailedRequestedUnrolling",
31 L->getStartLoc(), L->getHeader())
32 << "loop not unrolled: the optimizer was unable to perform the "
33 "requested transformation; the transformation might be disabled or "
34 "specified as part of an unsupported transformation ordering");
35 }
36
38 LLVM_DEBUG(dbgs() << "Leftover unroll-and-jam transformation\n");
41 "FailedRequestedUnrollAndJamming",
42 L->getStartLoc(), L->getHeader())
43 << "loop not unroll-and-jammed: the optimizer was unable to perform "
44 "the requested transformation; the transformation might be disabled "
45 "or specified as part of an unsupported transformation ordering");
46 }
47
49 LLVM_DEBUG(dbgs() << "Leftover vectorization transformation\n");
50 std::optional VectorizeWidth =
52 std::optional InterleaveCount =
54
55 if (!VectorizeWidth || VectorizeWidth->isVector())
58 "FailedRequestedVectorization",
59 L->getStartLoc(), L->getHeader())
60 << "loop not vectorized: the optimizer was unable to perform the "
61 "requested transformation; the transformation might be disabled "
62 "or specified as part of an unsupported transformation ordering");
63 else if (InterleaveCount.value_or(0) != 1)
66 "FailedRequestedInterleaving",
67 L->getStartLoc(), L->getHeader())
68 << "loop not interleaved: the optimizer was unable to perform the "
69 "requested transformation; the transformation might be disabled "
70 "or specified as part of an unsupported transformation ordering");
71 }
72
74 LLVM_DEBUG(dbgs() << "Leftover distribute transformation\n");
77 "FailedRequestedDistribution",
78 L->getStartLoc(), L->getHeader())
79 << "loop not distributed: the optimizer was unable to perform the "
80 "requested transformation; the transformation might be disabled or "
81 "specified as part of an unsupported transformation ordering");
82 }
83}
94
95
96 if (F.hasOptNone())
98
101
103
105}