Files
clang-p2996/llvm/test/Transforms/LoopIdiom/scev-invalidation_topmostloop.ll
Roman Lebedev aa2009fe78 [NFCI][SimplifyCFG] Mark all the SimplifyCFG tests that already don't invalidate DomTree as such
First step after e113317958,
in these tests, DomTree is valid afterwards, so mark them as such,
so that they don't regress.

In further steps, SimplifyCFG transforms shall taught to preserve DomTree,
in as small steps as possible.
2020-12-17 01:03:49 +03:00

26 lines
760 B
LLVM

; RUN: opt -S -indvars -loop-idiom -verify -loop-simplifycfg -simplifycfg-require-and-preserve-domtree=1 -loop-idiom < %s | FileCheck %s
target triple = "x86_64-unknown-linux-gnu"
; CHECK-LABEL: @f1()
; CHECK-NEXT: entry:
define void @f1() {
entry:
br label %lbl1
lbl1: ; preds = %if.end, %entry
br label %for
for: ; preds = %if.end, %lbl1
br label %lor.end
lor.end: ; preds = %for
br i1 undef, label %for.end, label %if.end
if.end: ; preds = %lor.end
br i1 undef, label %lbl1, label %for
for.end: ; preds = %lor.end
ret void
}