[llvm] r356252 - [ARM] Remove icmp undef from reduced tests
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 15 04:14:59 PDT 2019
Author: rksimon
Date: Fri Mar 15 04:14:59 2019
New Revision: 356252
URL: http://llvm.org/viewvc/llvm-project?rev=356252&view=rev
Log:
[ARM] Remove icmp undef from reduced tests
Pre-commit for D59363 (Add icmp UNDEF handling to SelectionDAG::FoldSetCC)
Approved by @efriedma (Eli Friedman)
Modified:
llvm/trunk/test/CodeGen/ARM/ifcvt-branch-weight-bug.ll
llvm/trunk/test/CodeGen/ARM/struct-byval-frame-index.ll
Modified: llvm/trunk/test/CodeGen/ARM/ifcvt-branch-weight-bug.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/ifcvt-branch-weight-bug.ll?rev=356252&r1=356251&r2=356252&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/ifcvt-branch-weight-bug.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/ifcvt-branch-weight-bug.ll Fri Mar 15 04:14:59 2019
@@ -9,7 +9,7 @@
%classG = type { %classL* }
%classM2 = type { %classL }
-define zeroext i1 @test(%classK* %this, %classM2* nocapture readnone %p1, %classM2* nocapture readnone %p2) align 2 {
+define zeroext i1 @test(%classK* %this, %classL* nocapture readnone %p0, %classM2* nocapture readnone %p1, %classM2* nocapture readnone %p2, i32 %a0) align 2 {
entry:
br i1 undef, label %for.end, label %for.body
@@ -27,11 +27,11 @@ for.body:
br i1 undef, label %for.cond.backedge, label %lor.lhs.false.i, !prof !1
for.cond.backedge:
- %tobool = icmp eq %classL* undef, null
+ %tobool = icmp eq %classL* %p0, null
br i1 %tobool, label %for.end, label %for.body
lor.lhs.false.i:
- %tobool.i.i7 = icmp eq i32 undef, 0
+ %tobool.i.i7 = icmp eq i32 %a0, 0
br i1 %tobool.i.i7, label %for.cond.backedge, label %cond.false.i
cond.false.i:
@@ -39,7 +39,8 @@ cond.false.i:
unreachable
for.end:
- br i1 undef, label %if.else.i.i, label %if.then.i.i
+ %tobool.i.i9 = icmp eq i32 %a0, 32
+ br i1 %tobool.i.i9, label %if.else.i.i, label %if.then.i.i
if.then.i.i:
store %classL* null, %classL** undef, align 4
Modified: llvm/trunk/test/CodeGen/ARM/struct-byval-frame-index.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/struct-byval-frame-index.ll?rev=356252&r1=356251&r2=356252&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/struct-byval-frame-index.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/struct-byval-frame-index.ll Fri Mar 15 04:14:59 2019
@@ -69,7 +69,7 @@ declare void @llvm.memset.p0i8.i32(i8* n
declare void @SetMotionVectorsMB(%structK* nocapture, i32) #1
; Function Attrs: nounwind
-define void @set_stored_macroblock_parameters() #1 {
+define void @set_stored_macroblock_parameters(i16 %a0, i32 %a1) #1 {
entry:
%0 = load %structB*, %structB** @img, align 4
%1 = load i32, i32* undef, align 4
@@ -126,20 +126,22 @@ if.end230:
%b8pdir = getelementptr inbounds %structK, %structK* %2, i32 %1, i32 15
%3 = bitcast [4 x i32]* %b8pdir to i8*
tail call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %3, i8* align 4 bitcast ([4 x i32]* @b8pdir to i8*), i32 16, i1 false)
- br i1 undef, label %if.end236, label %if.then233
+ %tobool.if.end230 = icmp ne i8* %3, null
+ br i1 %tobool.if.end230, label %if.end236, label %if.then233
if.then233: ; preds = %if.end230
unreachable
if.end236: ; preds = %if.end230
- %cmp242 = icmp ne i16 undef, 8
+ %cmp242 = icmp ne i16 %a0, 8
%4 = load i32, i32* @luma_transform_size_8x8_flag, align 4
%tobool245 = icmp ne i32 %4, 0
%or.cond812 = or i1 %cmp242, %tobool245
br i1 %or.cond812, label %if.end249, label %land.lhs.true246
land.lhs.true246: ; preds = %if.end236
- br i1 undef, label %if.end249, label %if.then248
+ %tobool246 = icmp sgt i32 %4, 1
+ br i1 %tobool246, label %if.end249, label %if.then248
if.then248: ; preds = %land.lhs.true246
tail call void asm sideeffect "", "~{r1},~{r2},~{r3},~{r4},~{r5},~{r6},~{r7},~{r8},~{r9},~{r10},~{r11}"() nounwind
@@ -154,7 +156,7 @@ if.end249:
%luma_transform_size_8x8_flag264 = getelementptr inbounds %structA, %structA* %6, i32 0, i32 21
store i32 %5, i32* %luma_transform_size_8x8_flag264, align 4
%7 = load i32, i32* undef, align 4
- %add281 = add nsw i32 %7, 0
+ %add281 = add nsw i32 %7, %4
br label %for.body285
for.body285: ; preds = %for.inc503, %if.end249
@@ -177,7 +179,7 @@ for.body285:
%14 = load %structB*, %structB** @img, align 4
%MbaffFrameFlag327 = getelementptr inbounds %structB, %structB* %14, i32 0, i32 100
%15 = load i32, i32* %MbaffFrameFlag327, align 4
- %tobool328 = icmp eq i32 %15, 0
+ %tobool328 = icmp eq i32 %15, %a1
br i1 %tobool328, label %if.end454, label %if.then329
if.then329: ; preds = %for.body285
More information about the llvm-commits
mailing list