diff options
author | Hal Finkel <hfinkel@anl.gov> | 2014-12-03 00:19:17 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2014-12-03 00:19:17 +0000 |
commit | 01fa7701e6ddaba68ed9e093c9cb637138cc2698 (patch) | |
tree | 9c219e6a87278657b65894a16f86b229215cfb8a /llvm/lib | |
parent | c93c84e882d763584ce4c8d911db50f2a0eacb9b (diff) | |
download | bcm5719-llvm-01fa7701e6ddaba68ed9e093c9cb637138cc2698.tar.gz bcm5719-llvm-01fa7701e6ddaba68ed9e093c9cb637138cc2698.zip |
[PowerPC] Fix readcyclecounter to be custom expanded for all 32-bit targets
We need to use the custom expansion of readcyclecounter on all 32-bit targets
(even those with 64-bit registers). This should fix the ppc64 buildbot.
llvm-svn: 223182
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index 3668a87b0ec..d913f3bbf7c 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp @@ -599,12 +599,10 @@ PPCTargetLowering::PPCTargetLowering(const PPCTargetMachine &TM) } } - if (Subtarget.has64BitSupport()) { + if (Subtarget.has64BitSupport()) setOperationAction(ISD::PREFETCH, MVT::Other, Legal); - setOperationAction(ISD::READCYCLECOUNTER, MVT::i64, Legal); - } else { - setOperationAction(ISD::READCYCLECOUNTER, MVT::i64, Custom); - } + + setOperationAction(ISD::READCYCLECOUNTER, MVT::i64, isPPC64 ? Legal : Custom); if (!isPPC64) { setOperationAction(ISD::ATOMIC_LOAD, MVT::i64, Expand); |