mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 23:32:27 +00:00
[NaryReassociate] remove redundant code
This check is already done by findClosestMatchingDominator. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243065 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
832202c797
commit
cab4b8c41b
@ -508,11 +508,6 @@ Instruction *NaryReassociate::tryReassociateAdd(Value *LHS, Value *RHS,
|
||||
|
||||
Instruction *NaryReassociate::tryReassociatedAdd(const SCEV *LHSExpr,
|
||||
Value *RHS, Instruction *I) {
|
||||
auto Pos = SeenExprs.find(LHSExpr);
|
||||
// Bail out if LHSExpr is not previously seen.
|
||||
if (Pos == SeenExprs.end())
|
||||
return nullptr;
|
||||
|
||||
// Look for the closest dominator LHS of I that computes LHSExpr, and replace
|
||||
// I with LHS + RHS.
|
||||
auto *LHS = findClosestMatchingDominator(LHSExpr, I);
|
||||
|
Loading…
x
Reference in New Issue
Block a user