mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-28 07:05:03 +00:00
[dfsan] Simplify code after r197677.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197679 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a7eb2b83ba
commit
de011a5f90
@ -837,7 +837,6 @@ Value *DataFlowSanitizer::combineShadows(Value *V1, Value *V2,
|
||||
IRBuilder<> IRB(Pos);
|
||||
BasicBlock *Head = Pos->getParent();
|
||||
Value *Ne = IRB.CreateICmpNE(V1, V2);
|
||||
if (Ne) {
|
||||
BranchInst *BI = cast<BranchInst>(SplitBlockAndInsertIfThen(
|
||||
Ne, Pos, /*Unreachable=*/false, ColdCallWeights));
|
||||
IRBuilder<> ThenIRB(BI);
|
||||
@ -852,10 +851,6 @@ Value *DataFlowSanitizer::combineShadows(Value *V1, Value *V2,
|
||||
Phi->addIncoming(V1, Head);
|
||||
Pos = Phi;
|
||||
return Phi;
|
||||
} else {
|
||||
assert(0 && "todo");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
// A convenience function which folds the shadows of each of the operands
|
||||
|
Loading…
Reference in New Issue
Block a user