[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)
commit6a778fb7c29ca696c63f2f7b327c136ef50663ef
tree426567dd891569329dfa58895391d2e6d1beba68
parent6b67d4277366cbaa0b76b544b94ebafab26e502a
[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.

llvm-svn: 231982
llvm/lib/Target/PowerPC/PPCInstr64Bit.td
llvm/lib/Target/PowerPC/PPCInstrAltivec.td
llvm/lib/Target/PowerPC/PPCInstrInfo.td
llvm/lib/Target/PowerPC/PPCInstrQPX.td
llvm/lib/Target/PowerPC/PPCInstrVSX.td