summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-11-02 18:22:51 +0000
committerChris Lattner <sabre@nondot.org>2009-11-02 18:22:51 +0000
commita3d794ebbb0765d96037efbc81bd03231ef031ca (patch)
tree472b444b601d658ae691324733251b3fcc33d47f /llvm/lib
parent5ac6f244fdbc6c33e047e1023816830efc911fd6 (diff)
downloadbcm5719-llvm-a3d794ebbb0765d96037efbc81bd03231ef031ca.tar.gz
bcm5719-llvm-a3d794ebbb0765d96037efbc81bd03231ef031ca.zip
disable IPSCCP support for multiple return values, it is buggy, so just
disable it until I can fix it. llvm-svn: 85810
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Scalar/SCCP.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/SCCP.cpp b/llvm/lib/Transforms/Scalar/SCCP.cpp
index 384b0baaa59..42791d660d6 100644
--- a/llvm/lib/Transforms/Scalar/SCCP.cpp
+++ b/llvm/lib/Transforms/Scalar/SCCP.cpp
@@ -1650,7 +1650,8 @@ bool IPSCCP::runOnModule(Module &M) {
// If this is a strong or ODR definition of this function, then we can
// propagate information about its result into callsites of it.
- if (!F->mayBeOverridden())
+ if (!F->mayBeOverridden() &&
+ !isa<StructType>(F->getReturnType()))
Solver.AddTrackedFunction(F);
// If this function only has direct calls that we can see, we can track its
OpenPOWER on IntegriCloud