File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
llvm/lib/Transforms/Scalar Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -75,8 +75,6 @@ static cl::opt<bool>
7575 " expressed as branches by widenable conditions" ),
7676 cl::init(true ));
7777
78- namespace {
79-
8078// Get the condition of \p I. It can either be a guard or a conditional branch.
8179static Value *getCondition (Instruction *I) {
8280 if (IntrinsicInst *GI = dyn_cast<IntrinsicInst>(I)) {
@@ -130,6 +128,8 @@ findInsertionPointForWideCondition(Instruction *WCOrGuard) {
130128 return std::nullopt ;
131129}
132130
131+ namespace {
132+
133133class GuardWideningImpl {
134134 DominatorTree &DT;
135135 PostDominatorTree *PDT;
@@ -328,7 +328,7 @@ class GuardWideningImpl {
328328 // / The entry point for this pass.
329329 bool run ();
330330};
331- }
331+ } // namespace
332332
333333static bool isSupportedGuardInstruction (const Instruction *Insn) {
334334 if (isGuard (Insn))
You can’t perform that action at this time.
0 commit comments