Only enable 64-bit bswap DAG combines for PPC64
authorHal Finkel <hfinkel@anl.gov>
Thu, 28 Mar 2013 20:23:46 +0000 (20:23 +0000)
committerHal Finkel <hfinkel@anl.gov>
Thu, 28 Mar 2013 20:23:46 +0000 (20:23 +0000)
commit2544f221c5f4047d7bdf10ec911c86a1d8be4a29
tree89a0791e8e7ee5d1eb6c599e2eea14220da98289
parent3832eff354eea32f92acf3f5176c6213cb65848b
Only enable 64-bit bswap DAG combines for PPC64

Compiling in 32-bit mode on a P7 would assert after 64-bit DAG combines were
added for bswap with load/store. This is because these combines are really only
valid in 64-bit mode, regardless of the CPU (and this was not being checked).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178286 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
test/CodeGen/PowerPC/bswap-load-store.ll