brintos

brintos / llvm-project-archived public Read only

0
0
Text · 406 B · 974c2da Raw
17 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py2; RUN: opt < %s -passes=sccp -S | FileCheck %s3 4; Branch on poison is UB, so the T block is never executed, and we can return5; undef (IPSCCP would replace the block with unreachable).6 7define i32 @foo() {8; CHECK-LABEL: @foo(9; CHECK-NEXT:    unreachable10;11  br i1 poison, label %T, label %T12T:13  %X = add i32 0, 114  ret i32 %X15}16 17