mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Doh. Alignment is in bytes, not in bits.
llvm-svn: 51092
This commit is contained in:
parent
f9d5689496
commit
95987c2586
@ -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 && !LD->isVolatile();
|
||||
return LD->getAlignment() >= 2 && !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() >= 32 && !LD->isVolatile();
|
||||
return LD->getAlignment() >= 4 && !LD->isVolatile();
|
||||
}
|
||||
return false;
|
||||
}]>;
|
||||
|
Loading…
Reference in New Issue
Block a user