mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-05 17:18:55 +00:00
[RewriteStatepointsForGC] Update comment for same PHI node check. NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@280052 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9e15636d69
commit
23b4641779
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user