[llvm-commits] [llvm] r48233 - /llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
Devang Patel
dpatel at apple.com
Tue Mar 11 11:04:22 PDT 2008
Author: dpatel
Date: Tue Mar 11 13:04:06 2008
New Revision: 48233
URL: http://llvm.org/viewvc/llvm-project?rev=48233&view=rev
Log:
Skip functions that return multiple values.
Modified:
llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp?rev=48233&r1=48232&r2=48233&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp Tue Mar 11 13:04:06 2008
@@ -8428,6 +8428,9 @@
const FunctionType *FT = Callee->getFunctionType();
const Type *OldRetTy = Caller->getType();
+ if (isa<StructType>(FT->getReturnType()))
+ return false; // TODO: Handle multiple return values.
+
// Check to see if we are changing the return type...
if (OldRetTy != FT->getReturnType()) {
if (Callee->isDeclaration() && !Caller->use_empty() &&
More information about the llvm-commits
mailing list