mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-05 10:17:36 +00:00
remove unnecessary cast; NFC
llvm-svn: 263343
This commit is contained in:
parent
3d21d4f960
commit
2077c270a0
@ -1935,10 +1935,9 @@ static bool FoldTwoEntryPHINode(PHINode *PN, const TargetTransformInfo &TTI,
|
||||
Value *TrueVal = PN->getIncomingValue(PN->getIncomingBlock(0) == IfFalse);
|
||||
Value *FalseVal = PN->getIncomingValue(PN->getIncomingBlock(0) == IfTrue);
|
||||
|
||||
SelectInst *NV =
|
||||
cast<SelectInst>(Builder.CreateSelect(IfCond, TrueVal, FalseVal, ""));
|
||||
PN->replaceAllUsesWith(NV);
|
||||
NV->takeName(PN);
|
||||
Value *Select = Builder.CreateSelect(IfCond, TrueVal, FalseVal);
|
||||
PN->replaceAllUsesWith(Select);
|
||||
Select->takeName(PN);
|
||||
PN->eraseFromParent();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user