]> granicus.if.org Git - llvm/commit
[GlobalISel][AArch64] Fold FI into LDR/STR ui addressing mode.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Mon, 27 Mar 2017 17:31:56 +0000 (17:31 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Mon, 27 Mar 2017 17:31:56 +0000 (17:31 +0000)
commit97874bddd63328616c18a0e8230f6732c02ba3ba
treeebf127d9321954cc2567f7108769c17b06f24fbc
parentdb6b71ba7954fad8e37a9c53ec84de95c3ae177e
[GlobalISel][AArch64] Fold FI into LDR/STR ui addressing mode.

A majority of loads and stores at O0 access an alloca.

It's trivial to fold the G_FRAME_INDEX into the instruction; do it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298864 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64InstructionSelector.cpp
test/CodeGen/AArch64/GlobalISel/select-load.mir
test/CodeGen/AArch64/GlobalISel/select-store.mir