mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-16 06:49:58 +00:00
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:
parent
a1a491c094
commit
40efc251cd
@ -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;
|
||||
}
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user