[RewriteStatepointsForGC] Update comment for same PHI node check. NFC
authorAnna Thomas <anna@azul.com>
Tue, 30 Aug 2016 02:36:48 +0000 (02:36 +0000)
committerAnna Thomas <anna@azul.com>
Tue, 30 Aug 2016 02:36:48 +0000 (02:36 +0000)
llvm-svn: 280052

llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp

index eafdb46..9bcf894 100644 (file)
@@ -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<PHINode>(CurrentValue))
     if (PHINode *BasePhi = dyn_cast<PHINode>(BaseValue)) {
       auto PhiNum = CurrentPhi->getNumIncomingValues();