diff options
author | Petar Avramovic <Petar.Avramovic@rt-rk.com> | 2019-08-01 09:40:13 +0000 |
---|---|---|
committer | Petar Avramovic <Petar.Avramovic@rt-rk.com> | 2019-08-01 09:40:13 +0000 |
commit | 8a40cedfe695869408412c018799d08a6ffc006c (patch) | |
tree | 1d59790fa483fb10012f25c9d3a9ee8b0eb35f6b /llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/stack_args.ll | |
parent | 0cfa72eaec134693105ec6916aa4692119337a3d (diff) | |
download | bcm5719-llvm-8a40cedfe695869408412c018799d08a6ffc006c.tar.gz bcm5719-llvm-8a40cedfe695869408412c018799d08a6ffc006c.zip |
[MIPS GlobalISel] Fold load/store + G_GEP + G_CONSTANT
Fold load/store + G_GEP + G_CONSTANT when
immediate in G_CONSTANT fits into 16 bit signed integer.
Differential Revision: https://reviews.llvm.org/D65507
llvm-svn: 367535
Diffstat (limited to 'llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/stack_args.ll')
-rw-r--r-- | llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/stack_args.ll | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/stack_args.ll b/llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/stack_args.ll index 0fe1b7c53cb..f44cfdc8638 100644 --- a/llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/stack_args.ll +++ b/llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/stack_args.ll @@ -13,9 +13,7 @@ define i32 @g(i32 %x1, i32 %x2, i32 %x3, i32 %x4, i32 %x5){ ; MIPS32-NEXT: addiu $1, $sp, 48 ; MIPS32-NEXT: lw $1, 0($1) ; MIPS32-NEXT: move $2, $sp -; MIPS32-NEXT: ori $3, $zero, 16 -; MIPS32-NEXT: addu $2, $2, $3 -; MIPS32-NEXT: sw $1, 0($2) +; MIPS32-NEXT: sw $1, 16($2) ; MIPS32-NEXT: jal f ; MIPS32-NEXT: nop ; MIPS32-NEXT: lw $ra, 28($sp) # 4-byte Folded Reload |