From: Nikita Popov Date: Thu, 5 Jan 2023 13:16:11 +0000 (+0100) Subject: [Examples] Convert test to opaque pointers (NFC) X-Git-Tag: upstream/17.0.6~22042 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6aa02f90d06bdd88eae42e180c3363e36b0d454a;p=platform%2Fupstream%2Fllvm.git [Examples] Convert test to opaque pointers (NFC) --- diff --git a/llvm/test/Examples/IRTransforms/SimplifyCFG/tut-simplify-cfg-blockaddress.ll b/llvm/test/Examples/IRTransforms/SimplifyCFG/tut-simplify-cfg-blockaddress.ll index ee6048b..91d5d72 100644 --- a/llvm/test/Examples/IRTransforms/SimplifyCFG/tut-simplify-cfg-blockaddress.ll +++ b/llvm/test/Examples/IRTransforms/SimplifyCFG/tut-simplify-cfg-blockaddress.ll @@ -3,21 +3,21 @@ ; RUN: opt -tut-simplifycfg -tut-simplifycfg-version=v2 -enable-new-pm=0 -S < %s | FileCheck %s ; RUN: opt -tut-simplifycfg -tut-simplifycfg-version=v3 -enable-new-pm=0 -S < %s | FileCheck %s -define i8* @simp1(i32 %x) { +define ptr @simp1(i32 %x) { ; CHECK-LABEL: @simp1( ; CHECK-NEXT: entry: ; CHECK-NEXT: [[CMP:%.*]] = icmp slt i32 [[X:%.*]], 42 -; CHECK-NEXT: [[ADDR:%.*]] = select i1 [[CMP]], i8* inttoptr (i32 1 to i8*), i8* inttoptr (i32 1 to i8*) -; CHECK-NEXT: ret i8* [[ADDR]] +; CHECK-NEXT: [[ADDR:%.*]] = select i1 [[CMP]], ptr inttoptr (i32 1 to ptr), ptr inttoptr (i32 1 to ptr) +; CHECK-NEXT: ret ptr [[ADDR]] ; entry: %cmp = icmp slt i32 %x, 42 - %addr = select i1 %cmp, i8* blockaddress(@simp1, %bb1), i8* blockaddress(@simp1, %bb2) - ret i8* %addr + %addr = select i1 %cmp, ptr blockaddress(@simp1, %bb1), ptr blockaddress(@simp1, %bb2) + ret ptr %addr bb1: - ret i8* null + ret ptr null bb2: - ret i8* null + ret ptr null }