diff options
author | James Molloy <james.molloy@arm.com> | 2011-10-26 08:53:19 +0000 |
---|---|---|
committer | James Molloy <james.molloy@arm.com> | 2011-10-26 08:53:19 +0000 |
commit | 015cca6c08a5da57b78796d82ab2679e8f5dabe1 (patch) | |
tree | 7fb5067bf96218d4bfd7fb2d404e5a0d2b02a625 /test/CodeGen | |
parent | 8a924c6edf7695dfaf85a625dfcb9eb593fc8c4f (diff) | |
download | external_llvm-015cca6c08a5da57b78796d82ab2679e8f5dabe1.zip external_llvm-015cca6c08a5da57b78796d82ab2679e8f5dabe1.tar.gz external_llvm-015cca6c08a5da57b78796d82ab2679e8f5dabe1.tar.bz2 |
Revert r142530 at least temporarily while a discussion is had on llvm-commits regarding exactly how much optsize should optimize for size over performance.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143023 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r-- | test/CodeGen/ARM/2011-10-18-DisableMovtSize.ll | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/test/CodeGen/ARM/2011-10-18-DisableMovtSize.ll b/test/CodeGen/ARM/2011-10-18-DisableMovtSize.ll deleted file mode 100644 index 4f84ab0..0000000 --- a/test/CodeGen/ARM/2011-10-18-DisableMovtSize.ll +++ /dev/null @@ -1,26 +0,0 @@ -; RUN: llc < %s -mtriple=armv7-unknown-linux-eabi | FileCheck %s - -; Check that when optimizing for size, a literal pool load is used -; instead of the (potentially faster) movw/movt pair when loading -; a large constant. - -@x = global i32* inttoptr (i32 305419888 to i32*), align 4 - -define i32 @f() optsize { - ; CHECK: f: - ; CHECK: ldr r{{.}}, {{.?}}LCPI{{.}}_{{.}} - ; CHECK: ldr r{{.}}, [{{(pc, )?}}r{{.}}] - ; CHECK: ldr r{{.}}, [r{{.}}] - %1 = load i32** @x, align 4 - %2 = load i32* %1 - ret i32 %2 -} - -define i32 @g() { - ; CHECK: g: - ; CHECK: movw - ; CHECK: movt - %1 = load i32** @x, align 4 - %2 = load i32* %1 - ret i32 %2 -} |