1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

- Don't treat anyext 16-bit load as a 32-bit load if it's volatile.

- Correct a pasto.

llvm-svn: 51054
This commit is contained in:
Evan Cheng 2008-05-13 16:45:56 +00:00
parent 5961d53986
commit cf6928983b

View File

@ -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;
}]>;