Disable my constant island pass optimization (to make use soimm more effectively). It caused infinite looping on lencod.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76995 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2009-07-24 19:31:03 +00:00
parent a1a491c094
commit 40efc251cd
2 changed files with 7 additions and 4 deletions

View File

@ -696,13 +696,11 @@ bool ARMConstantIslands::OffsetIsInRange(unsigned UserOffset,
// User before the Trial.
if (TrialOffset - UserOffset <= MaxDisp)
return true;
if (IsSoImm && ARM_AM::getSOImmVal(TrialOffset - UserOffset) != -1)
return true;
// FIXME: Make use full range of soimm values.
} else if (NegativeOK) {
if (UserOffset - TrialOffset <= MaxDisp)
return true;
if (IsSoImm && ARM_AM::getSOImmVal(~(TrialOffset - UserOffset)) != -1)
return true;
// FIXME: Make use full range of soimm values.
}
return false;
}

View File

@ -541,3 +541,8 @@ while ARMConstantIslandPass only need to worry about LDR (literal).
//===---------------------------------------------------------------------===//
We need to fix constant isel for ARMv6t2 to use MOVT.
//===---------------------------------------------------------------------===//
Constant island pass should make use of full range SoImm values for LEApcrel.
Be careful though as the last attempt caused infinite looping on lencod.