From 1aea6da56457d3c969edb90259abcc2da231590f Mon Sep 17 00:00:00 2001 From: Anna Thomas Date: Tue, 30 Aug 2016 02:36:48 +0000 Subject: [PATCH] [RewriteStatepointsForGC] Update comment for same PHI node check. NFC llvm-svn: 280052 --- llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp index eafdb46b3848..9bcf89446606 100644 --- a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp +++ b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp @@ -1805,7 +1805,8 @@ static bool findRematerializableChainToBasePointer( // conflict, and hence an additional phi with the same incoming values get // generated. We need to identify the BaseValue (.base version of phi) and // CurrentValue (the phi node itself) as the same, so that we can - // rematerialize the gep and casts below. + // rematerialize the gep and casts below. This is a workaround for the + // deficieny in the findBasePointer algorithm. if (PHINode *CurrentPhi = dyn_cast(CurrentValue)) if (PHINode *BasePhi = dyn_cast(BaseValue)) { auto PhiNum = CurrentPhi->getNumIncomingValues();