The isLoadFromStackSlot and isStoreToStackSlot have no way of reporting
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 27 Jul 2010 04:17:01 +0000 (04:17 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 27 Jul 2010 04:17:01 +0000 (04:17 +0000)
commit81c7b19f0494b3995a564778f666025495033d86
tree1156bd7b269e86877379135db64a38b306d854d0
parent516cd4575ef52bb8e648f04a18556d1906d9f84c
The isLoadFromStackSlot and isStoreToStackSlot have no way of reporting
subregister operands like this:

%reg1040:sub_32bit<def> = MOV32rm <fi#-2>, 1, %reg0, 0, %reg0, %reg1040<imp-def>; mem:LD4[FixedStack-2](align=8)

Make them return false when subreg operands are present. VirtRegRewriter is
making bad assumptions otherwise.

This fixes PR7713.

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