From 383bcb2e786157292384acbe20489147e11a2cda Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Fri, 15 Jun 2007 17:55:15 +0000 Subject: [PATCH] Fix test/Transforms/GVNPRE/2007-06-15-Looping.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37595 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/GVNPRE.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/Transforms/Scalar/GVNPRE.cpp b/lib/Transforms/Scalar/GVNPRE.cpp index 0e5e77c629e..d52e4d378f8 100644 --- a/lib/Transforms/Scalar/GVNPRE.cpp +++ b/lib/Transforms/Scalar/GVNPRE.cpp @@ -801,15 +801,13 @@ bool GVNPRE::runOnFunction(Function &F) { Value* s1 = 0; if (isa(U->getOperand(0))) - s1 = find_leader(availableOut[*PI], - phi_translate(U->getOperand(0), *PI, BB)); + s1 = find_leader(availableOut[*PI], U->getOperand(0)); else s1 = U->getOperand(0); Value* s2 = 0; if (isa(U->getOperand(1))) - s2 = find_leader(availableOut[*PI], - phi_translate(U->getOperand(1), *PI, BB)); + s2 = find_leader(availableOut[*PI], U->getOperand(1)); else s2 = U->getOperand(1);