summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
diff options
context:
space:
mode:
authorAnna Thomas <anna@azul.com>2016-08-30 02:36:48 +0000
committerAnna Thomas <anna@azul.com>2016-08-30 02:36:48 +0000
commit1aea6da56457d3c969edb90259abcc2da231590f (patch)
tree0ce94fb3c3d29039cb5407a475e511a2123f5390 /llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
parent8427a09d589627e3d57695fac939e951e9606358 (diff)
downloadbcm5719-llvm-1aea6da56457d3c969edb90259abcc2da231590f.tar.gz
bcm5719-llvm-1aea6da56457d3c969edb90259abcc2da231590f.zip
[RewriteStatepointsForGC] Update comment for same PHI node check. NFC
llvm-svn: 280052
Diffstat (limited to 'llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
index eafdb46b384..9bcf8944660 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<PHINode>(CurrentValue))
if (PHINode *BasePhi = dyn_cast<PHINode>(BaseValue)) {
auto PhiNum = CurrentPhi->getNumIncomingValues();
OpenPOWER on IntegriCloud