From a86343512845c9c1fdbac865fea88aa5fce7142a Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Wed, 17 Apr 2019 02:12:23 +0000 Subject: Temporarily Revert "Add basic loop fusion pass." As it's causing some bot failures (and per request from kbarton). This reverts commit r358543/ab70da07286e618016e78247e4a24fcb84077fda. llvm-svn: 358546 --- .../ConstantHoisting/ARM/gep-struct-index.ll | 37 ---------------------- 1 file changed, 37 deletions(-) delete mode 100644 llvm/test/Transforms/ConstantHoisting/ARM/gep-struct-index.ll (limited to 'llvm/test/Transforms/ConstantHoisting/ARM/gep-struct-index.ll') diff --git a/llvm/test/Transforms/ConstantHoisting/ARM/gep-struct-index.ll b/llvm/test/Transforms/ConstantHoisting/ARM/gep-struct-index.ll deleted file mode 100644 index 45f4500b37c..00000000000 --- a/llvm/test/Transforms/ConstantHoisting/ARM/gep-struct-index.ll +++ /dev/null @@ -1,37 +0,0 @@ -; RUN: opt -consthoist -S < %s | FileCheck %s -target triple = "thumbv6m-none-eabi" - -%T = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, -i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, -i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, -i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, -i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, -i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, -i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, -i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, -i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, -i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, -i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, -i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, -i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, -i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, -i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, -i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, -i32, i32, i32, i32, i32, i32 } - -; Indices for GEPs that index into a struct type should not be hoisted. -define i32 @test1(%T* %P) nounwind { -; CHECK-LABEL: @test1 -; CHECK: %const = bitcast i32 256 to i32 -; CHECK: %addr1 = getelementptr %T, %T* %P, i32 %const, i32 256 -; CHECK: %addr2 = getelementptr %T, %T* %P, i32 %const, i32 256 -; The first index into the pointer is hoisted, but the second one into the -; struct isn't. - %addr1 = getelementptr %T, %T* %P, i32 256, i32 256 - %tmp1 = load i32, i32* %addr1 - %addr2 = getelementptr %T, %T* %P, i32 256, i32 256 - %tmp2 = load i32, i32* %addr2 - %tmp4 = add i32 %tmp1, %tmp2 - ret i32 %tmp4 -} - -- cgit v1.2.3