From 898d48117430eac158fb3b01741ac4a3c63b4a4e Mon Sep 17 00:00:00 2001 From: Jinsong Ji Date: Tue, 11 Jun 2019 22:09:33 +0000 Subject: [PATCH] [PowerPC][NFC]Remove sms-simple.ll test temporarily. Looks like a MachinePipeliner algorithm problem found by sanitizer-x86_64-linux-fast. I will backout this test first while investigating the problem to unblock buildbot. ==49637==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x614000002e08 at pc 0x000004364350 bp 0x7ffe228a3bd0 sp 0x7ffe228a3bc8 READ of size 4 at 0x614000002e08 thread T0 #0 0x436434f in llvm::SwingSchedulerDAG::checkValidNodeOrder(llvm::SmallVector const&) const /b/sanitizer-x86_64-linux-fast/build/llvm/lib/CodeGen/MachinePipeliner.cpp:3736:11 #1 0x4342cd0 in llvm::SwingSchedulerDAG::schedule() /b/sanitizer-x86_64-linux-fast/build/llvm/lib/CodeGen/MachinePipeliner.cpp:486:3 #2 0x434042d in llvm::MachinePipeliner::swingModuloScheduler(llvm::MachineLoop&) /b/sanitizer-x86_64-linux-fast/build/llvm/lib/CodeGen/MachinePipeliner.cpp:385:7 #3 0x433eb90 in llvm::MachinePipeliner::runOnMachineFunction(llvm::MachineFunction&) /b/sanitizer-x86_64-linux-fast/build/llvm/lib/CodeGen/MachinePipeliner.cpp:207:5 #4 0x428b7ea in llvm::MachineFunctionPass::runOnFunction(llvm::Function&) /b/sanitizer-x86_64-linux-fast/build/llvm/lib/CodeGen/MachineFunctionPass.cpp:73:13 #5 0x4d1a913 in llvm::FPPassManager::runOnFunction(llvm::Function&) /b/sanitizer-x86_64-linux-fast/build/llvm/lib/IR/LegacyPassManager.cpp:1648:27 #6 0x4d1b192 in llvm::FPPassManager::runOnModule(llvm::Module&) /b/sanitizer-x86_64-linux-fast/build/llvm/lib/IR/LegacyPassManager.cpp:1685:16 #7 0x4d1c06d in runOnModule /b/sanitizer-x86_64-linux-fast/build/llvm/lib/IR/LegacyPassManager.cpp:1752:27 #8 0x4d1c06d in llvm::legacy::PassManagerImpl::run(llvm::Module&) /b/sanitizer-x86_64-linux-fast/build/llvm/lib/IR/LegacyPassManager.cpp:1865 #9 0xa48ca3 in compileModule(char**, llvm::LLVMContext&) /b/sanitizer-x86_64-linux-fast/build/llvm/tools/llc/llc.cpp:611:8 #10 0xa4270f in main /b/sanitizer-x86_64-linux-fast/build/llvm/tools/llc/llc.cpp:365:22 #11 0x7fec902572e0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202e0) #12 0x971b69 in _start (/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan/bin/llc+0x971b69) llvm-svn: 363105 --- llvm/test/CodeGen/PowerPC/sms-simple.ll | 78 ------------------------- 1 file changed, 78 deletions(-) delete mode 100644 llvm/test/CodeGen/PowerPC/sms-simple.ll diff --git a/llvm/test/CodeGen/PowerPC/sms-simple.ll b/llvm/test/CodeGen/PowerPC/sms-simple.ll deleted file mode 100644 index 6b1f0e453e8f2c..00000000000000 --- a/llvm/test/CodeGen/PowerPC/sms-simple.ll +++ /dev/null @@ -1,78 +0,0 @@ -; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc < %s -ppc-vsr-nums-as-vr -mtriple=powerpc64-unknown-linux-gnu \ -; RUN: -verify-machineinstrs -ppc-asm-full-reg-names -mcpu=pwr9 --ppc-enable-pipeliner \ -; RUN: | FileCheck %s - -@x = dso_local local_unnamed_addr global <{ i32, i32, i32, i32, [1020 x i32] }> <{ i32 1, i32 2, i32 3, i32 4, [1020 x i32] zeroinitializer }>, align 4 -@y = common dso_local global [1024 x i32] zeroinitializer, align 4 - -; Function Attrs: norecurse nounwind -define dso_local i32* @foo() local_unnamed_addr #0 { -; CHECK-LABEL: foo: -; CHECK: # %bb.0: # %entry -; CHECK-NEXT: addis r5, r2, x@toc@ha -; CHECK-NEXT: addi r5, r5, x@toc@l -; CHECK-NEXT: addis r6, r2, y@toc@ha -; CHECK-NEXT: li r7, 340 -; CHECK-NEXT: addi r3, r6, y@toc@l -; CHECK-NEXT: lwz r6, y@toc@l(r6) -; CHECK-NEXT: mtctr r7 -; CHECK-NEXT: addi r5, r5, -8 -; CHECK-NEXT: lwzu r7, 12(r5) -; CHECK-NEXT: maddld r6, r7, r7, r6 -; CHECK-NEXT: lwz r7, 4(r5) -; CHECK-NEXT: addi r4, r3, -8 -; CHECK-NEXT: stwu r6, 12(r4) -; CHECK-NEXT: maddld r6, r7, r7, r6 -; CHECK-NEXT: lwz r7, 8(r5) -; CHECK-NEXT: .p2align 4 -; CHECK-NEXT: .LBB0_1: # %for.body -; CHECK: maddld r7, r7, r7, r6 -; CHECK-NEXT: lwzu r8, 12(r5) -; CHECK-NEXT: maddld r8, r8, r8, r7 -; CHECK-NEXT: stw r6, 4(r4) -; CHECK-NEXT: lwz r6, 4(r5) -; CHECK-NEXT: maddld r6, r6, r6, r8 -; CHECK-NEXT: stw r7, 8(r4) -; CHECK-NEXT: lwz r7, 8(r5) -; CHECK-NEXT: stwu r8, 12(r4) -; CHECK-NEXT: bdnz .LBB0_1 -; CHECK-NEXT: # %bb.2: -; CHECK-NEXT: maddld r5, r7, r7, r6 -; CHECK-NEXT: stw r6, 4(r4) -; CHECK-NEXT: stw r5, 8(r4) -; CHECK-NEXT: blr -entry: - %.pre = load i32, i32* getelementptr inbounds ([1024 x i32], [1024 x i32]* @y, i64 0, i64 0), align 4 - br label %for.body - -for.cond.cleanup: ; preds = %for.body - ret i32* getelementptr inbounds ([1024 x i32], [1024 x i32]* @y, i64 0, i64 0) - -for.body: ; preds = %for.body, %entry - %0 = phi i32 [ %.pre, %entry ], [ %add.2, %for.body ] - %indvars.iv = phi i64 [ 1, %entry ], [ %indvars.iv.next.2, %for.body ] - %arrayidx2 = getelementptr inbounds [1024 x i32], [1024 x i32]* bitcast (<{ i32, i32, i32, i32, [1020 x i32] }>* @x to [1024 x i32]*), i64 0, i64 %indvars.iv - %1 = load i32, i32* %arrayidx2, align 4 - %mul = mul nsw i32 %1, %1 - %add = add nsw i32 %mul, %0 - %arrayidx6 = getelementptr inbounds [1024 x i32], [1024 x i32]* @y, i64 0, i64 %indvars.iv - store i32 %add, i32* %arrayidx6, align 4 - %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 - %arrayidx2.1 = getelementptr inbounds [1024 x i32], [1024 x i32]* bitcast (<{ i32, i32, i32, i32, [1020 x i32] }>* @x to [1024 x i32]*), i64 0, i64 %indvars.iv.next - %2 = load i32, i32* %arrayidx2.1, align 4 - %mul.1 = mul nsw i32 %2, %2 - %add.1 = add nsw i32 %mul.1, %add - %arrayidx6.1 = getelementptr inbounds [1024 x i32], [1024 x i32]* @y, i64 0, i64 %indvars.iv.next - store i32 %add.1, i32* %arrayidx6.1, align 4 - %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2 - %arrayidx2.2 = getelementptr inbounds [1024 x i32], [1024 x i32]* bitcast (<{ i32, i32, i32, i32, [1020 x i32] }>* @x to [1024 x i32]*), i64 0, i64 %indvars.iv.next.1 - %3 = load i32, i32* %arrayidx2.2, align 4 - %mul.2 = mul nsw i32 %3, %3 - %add.2 = add nsw i32 %mul.2, %add.1 - %arrayidx6.2 = getelementptr inbounds [1024 x i32], [1024 x i32]* @y, i64 0, i64 %indvars.iv.next.1 - store i32 %add.2, i32* %arrayidx6.2, align 4 - %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3 - %exitcond.2 = icmp eq i64 %indvars.iv.next.2, 1024 - br i1 %exitcond.2, label %for.cond.cleanup, label %for.body -}