]> granicus.if.org Git - llvm/commit
[MIPS GlobalISel] Fold load/store + G_GEP + G_CONSTANT
authorPetar Avramovic <Petar.Avramovic@rt-rk.com>
Thu, 1 Aug 2019 09:40:13 +0000 (09:40 +0000)
committerPetar Avramovic <Petar.Avramovic@rt-rk.com>
Thu, 1 Aug 2019 09:40:13 +0000 (09:40 +0000)
commit0682a2c47094fc8faa2e7ed01ba90ba02d117ecd
treecbd3b31a17eef1be9b4ee3bf98b87b7196e595df
parentea78572ea0c67da8ea0f1346cab25d9ef956f5cf
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367535 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MipsInstructionSelector.cpp
test/CodeGen/Mips/GlobalISel/instruction-select/load_store_fold.mir [new file with mode: 0644]
test/CodeGen/Mips/GlobalISel/instruction-select/stack_args.mir
test/CodeGen/Mips/GlobalISel/llvm-ir/load.ll
test/CodeGen/Mips/GlobalISel/llvm-ir/load_store_fold.ll [new file with mode: 0644]
test/CodeGen/Mips/GlobalISel/llvm-ir/long_ambiguous_chain_s64.ll
test/CodeGen/Mips/GlobalISel/llvm-ir/stack_args.ll
test/CodeGen/Mips/GlobalISel/llvm-ir/store.ll