Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions llvm/lib/Transforms/IPO/SCCP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,8 @@ static void findReturnsToZap(Function &F,
if (!isa<CallBase>(U))
return true;
if (U->getType()->isStructTy()) {
return all_of(Solver.getStructLatticeValueFor(U),
[](const ValueLatticeElement &LV) {
return !SCCPSolver::isOverdefined(LV);
});
return none_of(Solver.getStructLatticeValueFor(U),
SCCPSolver::isOverdefined);
}

// We don't consider assume-like intrinsics to be actual address
Expand Down
Loading