17 lines · plain
1; RUN: opt < %s -passes=instcombine -S | FileCheck %s2 3@.str254 = internal constant [2 x i8] c".\00"4@.str557 = internal constant [3 x i8] c"::\00"5 6define ptr @demangle_qualified(i32 %isfuncname) nounwind {7entry:8 %tobool272 = icmp ne i32 %isfuncname, 09 %cond276 = select i1 %tobool272, ptr @.str254, ptr @.str557 ; <ptr> [#uses=4]10 %cmp.i504 = icmp eq ptr %cond276, null11 %rval = getelementptr i8, ptr %cond276, i1 %cmp.i50412 ret ptr %rval13}14 15; CHECK: %cond276 = select i116; CHECK: ret ptr %cond27617