switch.ll 301 B

12345678910111213
  1. ; RUN: opt -S -sccp < %s | FileCheck %s
  2. ; Make sure we always consider the default edge executable for a switch
  3. ; with no cases.
  4. declare void @foo()
  5. define void @test1() {
  6. ; CHECK-LABEL: define void @test1(
  7. ; CHECK: call void @foo()
  8. switch i32 undef, label %d []
  9. d:
  10. call void @foo()
  11. ret void
  12. }