mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-04 18:09:20 +00:00
Handle an interesting corner case: the constpool_entry being reference is two
instructions away, i.e. its address is equal to PC. %r0 = tLDRpci <cp#0> bx CONSTPOOL_ENTRY 0 <cp#0>, 4 llvm-svn: 33728
This commit is contained in:
parent
082e441207
commit
765de99fac
@ -472,7 +472,7 @@ bool ARMConstantIslands::CPEIsInRange(MachineInstr *MI, MachineInstr *CPEMI,
|
||||
<< " at offset " << int(UserOffset-CPEOffset) << "\t"
|
||||
<< *MI);
|
||||
|
||||
if (UserOffset < CPEOffset) {
|
||||
if (UserOffset <= CPEOffset) {
|
||||
// User before the CPE.
|
||||
if (CPEOffset-UserOffset <= MaxDisp)
|
||||
return true;
|
||||
@ -563,7 +563,7 @@ bool ARMConstantIslands::BBIsInRange(MachineInstr *MI,MachineBasicBlock *DestBB,
|
||||
<< " at offset " << int(BrOffset-DestOffset) << "\t"
|
||||
<< *MI);
|
||||
|
||||
if (BrOffset < DestOffset) {
|
||||
if (BrOffset <= DestOffset) {
|
||||
if (DestOffset - BrOffset < MaxDisp)
|
||||
return true;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user