diff options
| author | Hal Finkel <hfinkel@anl.gov> | 2012-04-01 20:08:17 +0000 |
|---|---|---|
| committer | Hal Finkel <hfinkel@anl.gov> | 2012-04-01 20:08:17 +0000 |
| commit | 322e41a9144493600bf4474132a36f015231379f (patch) | |
| tree | 9df87e0baf65e1ec3fd487965d0a025181dd4de3 /llvm/lib/Target/PowerPC/PPCISelLowering.cpp | |
| parent | 9032344c15248ff5ae4da0f01a7878498e267ba4 (diff) | |
| download | bcm5719-llvm-322e41a9144493600bf4474132a36f015231379f.tar.gz bcm5719-llvm-322e41a9144493600bf4474132a36f015231379f.zip | |
Enable prefetch generation on PPC64.
llvm-svn: 153851
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index 00f2dcc8dbf..96b7074aa02 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp @@ -389,6 +389,9 @@ PPCTargetLowering::PPCTargetLowering(PPCTargetMachine &TM) setOperationAction(ISD::BUILD_VECTOR, MVT::v4f32, Custom); } + if (TM.getSubtarget<PPCSubtarget>().has64BitSupport()) + setOperationAction(ISD::PREFETCH, MVT::Other, Legal); + setOperationAction(ISD::ATOMIC_LOAD, MVT::i32, Expand); setOperationAction(ISD::ATOMIC_STORE, MVT::i32, Expand); |

