1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt < %s -passes=instcombine -S | FileCheck %s
3 ; Verify that a cdecl-compatible calling convention does not trigger emitting
4 ; unreachable idom `store i1 true, ptr undef`.
6 define arm_aapcs_vfpcc i8 @bar(ptr %0) {
8 ; CHECK-NEXT: [[TMP2:%.*]] = load i8, ptr [[TMP0:%.*]], align 1
9 ; CHECK-NEXT: ret i8 [[TMP2]]
11 %2 = load i8, ptr %0, align 1
15 define dso_local arm_aapcs_vfpcc i8 @foo(ptr %0) {
17 ; CHECK-NEXT: [[TMP2:%.*]] = call i8 @bar(ptr [[TMP0:%.*]])
18 ; CHECK-NEXT: ret i8 [[TMP2]]
20 %2 = call i8 @bar(ptr %0)