mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-16 02:57:52 +00:00
remove unnecessary cast; NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263343 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
52c58851ea
commit
34d4afa5ad
@ -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…
x
Reference in New Issue
Block a user