Simplify operand folding when rematerializing a load.
authorAndrew Trick <atrick@apple.com>
Tue, 12 Nov 2013 18:06:12 +0000 (18:06 +0000)
committerAndrew Trick <atrick@apple.com>
Tue, 12 Nov 2013 18:06:12 +0000 (18:06 +0000)
commit0085d5e5ae45e74254c2aa682e18574cd79f3455
tree14dc73e28af7cc34ac7e1119d91d4b5d9b154b25
parent2f08e75a45b9fa698a49277f6cc11e041bf5fa51
Simplify operand folding when rematerializing a load.

We already know how to fold a reload from a frameindex without
analyzing the load instruction. Generalize this to handle any
frameindex load. This streamlines the logic for rematerializing loads
from stack arguments. As a side effect, it allows stackmaps to record
a stack argument location without spilling it.

Verified no effect on codegen for llvm test-suite.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194497 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrInfo.cpp
test/CodeGen/X86/stackmap.ll