mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-12 06:06:19 +00:00
- Don't treat anyext 16-bit load as a 32-bit load if it's volatile.
- Correct a pasto. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51054 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e269f434b1
commit
11b6793ede
@ -239,7 +239,7 @@ def loadi16 : PatFrag<(ops node:$ptr), (i16 (ld node:$ptr)), [{
|
||||
if (ExtType == ISD::NON_EXTLOAD)
|
||||
return true;
|
||||
if (ExtType == ISD::EXTLOAD)
|
||||
return LD->getAlignment() >= 16;
|
||||
return LD->getAlignment() >= 8 && !LD->isVolatile();
|
||||
}
|
||||
return false;
|
||||
}]>;
|
||||
@ -252,7 +252,7 @@ def loadi32 : PatFrag<(ops node:$ptr), (i32 (ld node:$ptr)), [{
|
||||
if (ExtType == ISD::NON_EXTLOAD)
|
||||
return true;
|
||||
if (ExtType == ISD::EXTLOAD)
|
||||
return LD->getAlignment() >= 16;
|
||||
return LD->getAlignment() >= 16 && !LD->isVolatile();
|
||||
}
|
||||
return false;
|
||||
}]>;
|
||||
|
Loading…
Reference in New Issue
Block a user