summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/NVPTX/NVPTXInferAddressSpaces.cpp
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2016-04-26 23:44:31 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2016-04-26 23:44:31 +0000
commit87b10dd7b38a17fe154fe15211d76abc3d9ddf26 (patch)
treee272f36f72376013250e6890400e3320b9e459a4 /llvm/lib/Target/NVPTX/NVPTXInferAddressSpaces.cpp
parent4ff3cfb6733235b8fbf1f08f1f53bedc37d86e9f (diff)
downloadbcm5719-llvm-87b10dd7b38a17fe154fe15211d76abc3d9ddf26.tar.gz
bcm5719-llvm-87b10dd7b38a17fe154fe15211d76abc3d9ddf26.zip
Add optimization bisect opt-in calls for NVPTX passes
Differential Revision: http://reviews.llvm.org/D19518 llvm-svn: 267635
Diffstat (limited to 'llvm/lib/Target/NVPTX/NVPTXInferAddressSpaces.cpp')
-rw-r--r--llvm/lib/Target/NVPTX/NVPTXInferAddressSpaces.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/NVPTX/NVPTXInferAddressSpaces.cpp b/llvm/lib/Target/NVPTX/NVPTXInferAddressSpaces.cpp
index 1bcb5cab8fc..e451d273cf4 100644
--- a/llvm/lib/Target/NVPTX/NVPTXInferAddressSpaces.cpp
+++ b/llvm/lib/Target/NVPTX/NVPTXInferAddressSpaces.cpp
@@ -419,6 +419,9 @@ static unsigned joinAddressSpaces(unsigned AS1, unsigned AS2) {
}
bool NVPTXInferAddressSpaces::runOnFunction(Function &F) {
+ if (skipFunction(F))
+ return false;
+
// Collects all generic address expressions in postorder.
std::vector<Value *> Postorder = collectGenericAddressExpressions(F);
OpenPOWER on IntegriCloud