diff options
| author | Haicheng Wu <haicheng@codeaurora.org> | 2017-01-20 03:40:41 +0000 |
|---|---|---|
| committer | Haicheng Wu <haicheng@codeaurora.org> | 2017-01-20 03:40:41 +0000 |
| commit | 8f2aca388b708325b488be548ebc0976f9358edc (patch) | |
| tree | 40804780c2ac3201b126f83828bfb13060bf5010 /llvm/test/Transforms/Inline | |
| parent | ccca669ccd081071d5add8263c681125d76807b0 (diff) | |
| download | bcm5719-llvm-8f2aca388b708325b488be548ebc0976f9358edc.tar.gz bcm5719-llvm-8f2aca388b708325b488be548ebc0976f9358edc.zip | |
Revert "Recommit "[InlineCost] Use TTI to check if GEP is free.""
This reverts commit r292570. The test still has problem.
llvm-svn: 292572
Diffstat (limited to 'llvm/test/Transforms/Inline')
| -rw-r--r-- | llvm/test/Transforms/Inline/gep-cost.ll | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/llvm/test/Transforms/Inline/gep-cost.ll b/llvm/test/Transforms/Inline/gep-cost.ll deleted file mode 100644 index 442f7589176..00000000000 --- a/llvm/test/Transforms/Inline/gep-cost.ll +++ /dev/null @@ -1,30 +0,0 @@ -; REQUIRES: asserts -; RUN: opt -inline < %s -mtriple=aarch64--linux-gnu -mcpu=kryo -S -debug-only=inline-cost 2>&1 | FileCheck %s - -target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128" -target triple = "aarch64--linux-gnu" - -define void @outer([4 x i32]* %ptr, i32 %i) { - call void @inner1([4 x i32]* %ptr, i32 %i) - call void @inner2([4 x i32]* %ptr, i32 %i) - ret void -} -; The gep in inner1() is reg+reg, which is a legal addressing mode for AArch64. -; Thus, both the gep and ret can be simplified. -; CHECK: Analyzing call of inner1 -; CHECK: NumInstructionsSimplified: 2 -; CHECK: NumInstructions: 2 -define void @inner1([4 x i32]* %ptr, i32 %i) { - %G = getelementptr inbounds [4 x i32], [4 x i32]* %ptr, i32 0, i32 %i - ret void -} - -; The gep in inner2() is reg+imm+reg, which is not a legal addressing mode for -; AArch64. Thus, only the ret can be simplified and not the gep. -; CHECK: Analyzing call of inner2 -; CHECK: NumInstructionsSimplified: 1 -; CHECK: NumInstructions: 2 -define void @inner2([4 x i32]* %ptr, i32 %i) { - %G = getelementptr inbounds [4 x i32], [4 x i32]* %ptr, i32 1, i32 %i - ret void -} |

