disable IPSCCP support for multiple return values, it is buggy, so just

disable it until I can fix it.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85810 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2009-11-02 18:22:51 +00:00
parent 2f54a2fd85
commit 2bbbbd6ac8
3 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -4,6 +4,8 @@
; RUN: grep {%mrv1 = insertvalue %T %mrv, i32 17, 1} %t
; RUN: grep {ret %T %mrv1} %t
; XFAIL: *
%T = type {i32,i32}
define internal {i32, i32} @bar(i32 %A) {

View File

@ -1,4 +1,5 @@
; RUN: opt < %s -ipsccp -S | FileCheck %s
; XFAIL: *
;;======================== test1