summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-03-10 19:38:10 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-03-10 19:38:10 +0000
commitae2c56d93e61204a634544bb3d9389adfcc060cb (patch)
treec78f7acced3b1eefd5ec421983f965d191b1308a /llvm/lib/CodeGen/SelectionDAG
parent4114219ac69cb11accdf5b68c6f4c836438fcd88 (diff)
downloadbcm5719-llvm-ae2c56d93e61204a634544bb3d9389adfcc060cb.tar.gz
bcm5719-llvm-ae2c56d93e61204a634544bb3d9389adfcc060cb.zip
Default ISD::PREFETCH to expand.
llvm-svn: 48169
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index 0025766f749..7900e97b248 100644
--- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -178,6 +178,9 @@ TargetLowering::TargetLowering(TargetMachine &tm)
// These operations default to expand.
setOperationAction(ISD::FGETSIGN, (MVT::ValueType)VT, Expand);
}
+
+ // Most targets ignore the @llvm.prefetch intrinsic.
+ setOperationAction(ISD::PREFETCH, MVT::Other, Expand);
// ConstantFP nodes default to expand. Targets can either change this to
// Legal, in which case all fp constants are legal, or use addLegalFPImmediate
OpenPOWER on IntegriCloud