diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-07-24 19:31:03 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-07-24 19:31:03 +0000 |
commit | 40efc251cd7a52dd2375ec95ee38b1be4572178f (patch) | |
tree | 673e7e105c08cfb087e6f0b61cea035d9158b065 /lib/Target/ARM/ARMConstantIslandPass.cpp | |
parent | a1a491c09429d9d0b3e74b404dd1d0aad8890eed (diff) | |
download | external_llvm-40efc251cd7a52dd2375ec95ee38b1be4572178f.zip external_llvm-40efc251cd7a52dd2375ec95ee38b1be4572178f.tar.gz external_llvm-40efc251cd7a52dd2375ec95ee38b1be4572178f.tar.bz2 |
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
Diffstat (limited to 'lib/Target/ARM/ARMConstantIslandPass.cpp')
-rw-r--r-- | lib/Target/ARM/ARMConstantIslandPass.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Target/ARM/ARMConstantIslandPass.cpp b/lib/Target/ARM/ARMConstantIslandPass.cpp index 1f584d4..48db39b 100644 --- a/lib/Target/ARM/ARMConstantIslandPass.cpp +++ b/lib/Target/ARM/ARMConstantIslandPass.cpp @@ -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; } |