mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-30 19:35:54 +00:00
Revert last patch. It was already fixed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36102 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1cd9d77a7d
commit
3e35c8d15e
@ -2125,12 +2125,7 @@ SolveQuadraticEquation(const SCEVAddRecExpr *AddRec) {
|
||||
// Compute the two solutions for the quadratic formula.
|
||||
// The divisions must be performed as signed divisions.
|
||||
APInt NegB(-B);
|
||||
APInt TwoA( A << Two );
|
||||
if (TwoA == 0) {
|
||||
const Type* Ty = LC->getValue()->getType();
|
||||
return std::make_pair(SCEVUnknown::get(UndefValue::get(Ty)),
|
||||
SCEVUnknown::get(UndefValue::get(Ty)));
|
||||
}
|
||||
APInt TwoA( A << 1 );
|
||||
ConstantInt *Solution1 = ConstantInt::get((NegB + SqrtVal).sdiv(TwoA));
|
||||
ConstantInt *Solution2 = ConstantInt::get((NegB - SqrtVal).sdiv(TwoA));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user