1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -S -passes=ipsccp < %s | FileCheck %s
4 ; SCCP should never remove landingpads.
8 define void @test() personality ptr null {
10 ; CHECK-NEXT: invoke void @fn()
11 ; CHECK-NEXT: to label [[SUCCESS:%.*]] unwind label [[FAILURE:%.*]]
13 ; CHECK-NEXT: ret void
15 ; CHECK-NEXT: [[PAD:%.*]] = landingpad {}
17 ; CHECK-NEXT: unreachable
20 to label %success unwind label %failure