OSDN Git Service

[mips][FastISel] Allow computation of addresses from constant expressions.
authorVasileios Kalintiris <Vasileios.Kalintiris@imgtec.com>
Tue, 12 May 2015 12:08:31 +0000 (12:08 +0000)
committerVasileios Kalintiris <Vasileios.Kalintiris@imgtec.com>
Tue, 12 May 2015 12:08:31 +0000 (12:08 +0000)
commit4ffee4b8533cb912c24fad0428e1460e7b1b59cc
tree5ee04d6119921f03a1724a436a505bcf961c7a3b
parented7316767349283918e5fd6d486582156abed294
[mips][FastISel] Allow computation of addresses from constant expressions.

Summary:
Try to compute addresses when the offset from a memory location is a constant
expression.

Based on a patch by Reed Kotler.

Test Plan:
Passes test-suite for -O0/O2 and mips 32 r1/r2

Reviewers: rkotler, dsanders

Subscribers: llvm-commits, aemerson, rfuhler

Differential Revision: http://reviews.llvm.org/D6767

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237117 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MipsFastISel.cpp
test/CodeGen/Mips/Fast-ISel/constexpr-address.ll [new file with mode: 0644]