[PowerPC] Remove canFoldAsLoad from instruction definitions
authorHal Finkel <hfinkel@anl.gov>
Wed, 11 Mar 2015 23:28:38 +0000 (23:28 +0000)
committerHal Finkel <hfinkel@anl.gov>
Wed, 11 Mar 2015 23:28:38 +0000 (23:28 +0000)
commit5127011d3ae68808df9e2bd4881ca0f20645b519
tree73a0a649e404f91be727b432745a60d33ea46d98
parent1134ac4a0f754b75524687fc86ab4aa10562a1b8
[PowerPC] Remove canFoldAsLoad from instruction definitions

The PowerPC backend had a number of loads that were marked as canFoldAsLoad
(and I'm partially at fault here for copying around the relevant line of
TableGen definitions without really looking at what it meant). This is not
right; PPC (non-memory) instructions don't support direct memory operands, and
so there is nothing a 'foldable' instruction could be folded into.

Noticed by inspection, no test case.

The one thing we might lose by doing this is ability to fold some loads into
stackmap/patchpoint pseudo-instructions. However, this was untested, and would
not obviously have worked for extending loads, and I'd rather re-add support
for that once it can be tested.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231982 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCInstr64Bit.td
lib/Target/PowerPC/PPCInstrAltivec.td
lib/Target/PowerPC/PPCInstrInfo.td
lib/Target/PowerPC/PPCInstrQPX.td
lib/Target/PowerPC/PPCInstrVSX.td