Mercurial > hg > CbC > CbC_llvm
view llvm/test/Transforms/InstSimplify/dead-code-removal.ll @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children | c4bab56944e8 |
line wrap: on
line source
; RUN: opt -instsimplify -S < %s | FileCheck %s define void @foo() nounwind { br i1 undef, label %1, label %4 ; <label>:1 ; preds = %1, %0 ; CHECK-NOT: phi ; CHECK-NOT: sub %2 = phi i32 [ %3, %1 ], [ undef, %0 ] %3 = sub i32 0, undef br label %1 ; <label>:4 ; preds = %0 ret void }