1; RUN: opt < %s -instcombine -S | FileCheck %s 2 3declare void @llvm.memcpy.p0i8.p0i8.i32(i8* nocapture, i8* nocapture, i32, i32, i1) nounwind 4 5define void @test1(i8* %a) { 6 tail call void @llvm.memcpy.p0i8.p0i8.i32(i8* %a, i8* %a, i32 100, i32 1, i1 false) 7 ret void 8; CHECK: define void @test1 9; CHECK-NEXT: ret void 10} 11 12 13; PR8267 14define void @test2(i8* %a) { 15 tail call void @llvm.memcpy.p0i8.p0i8.i32(i8* %a, i8* %a, i32 100, i32 1, i1 true) 16 ret void 17; CHECK: define void @test2 18; CHECK-NEXT: call void @llvm.memcpy 19} 20