mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
- Fix the pasto in the fix for a previous pasto.
- Incorporate Chris' comment suggestion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51061 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -229,8 +229,8 @@ def i32immSExt8 : PatLeaf<(i32 imm), [{
|
|||||||
}]>;
|
}]>;
|
||||||
|
|
||||||
// Helper fragments for loads.
|
// Helper fragments for loads.
|
||||||
// It's always safe to treat a anyext i16 load as a i32 load. Ditto for
|
// It's always safe to treat a anyext i16 load as a i32 load if the i16 is
|
||||||
// i8 to i16.
|
// known to be 32-bit aligned or better. Ditto for i8 to i16.
|
||||||
def loadi16 : PatFrag<(ops node:$ptr), (i16 (ld node:$ptr)), [{
|
def loadi16 : PatFrag<(ops node:$ptr), (i16 (ld node:$ptr)), [{
|
||||||
if (LoadSDNode *LD = dyn_cast<LoadSDNode>(N)) {
|
if (LoadSDNode *LD = dyn_cast<LoadSDNode>(N)) {
|
||||||
if (LD->getAddressingMode() != ISD::UNINDEXED)
|
if (LD->getAddressingMode() != ISD::UNINDEXED)
|
||||||
@@ -239,7 +239,7 @@ def loadi16 : PatFrag<(ops node:$ptr), (i16 (ld node:$ptr)), [{
|
|||||||
if (ExtType == ISD::NON_EXTLOAD)
|
if (ExtType == ISD::NON_EXTLOAD)
|
||||||
return true;
|
return true;
|
||||||
if (ExtType == ISD::EXTLOAD)
|
if (ExtType == ISD::EXTLOAD)
|
||||||
return LD->getAlignment() >= 8 && !LD->isVolatile();
|
return LD->getAlignment() >= 16 && !LD->isVolatile();
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}]>;
|
}]>;
|
||||||
@@ -252,7 +252,7 @@ def loadi32 : PatFrag<(ops node:$ptr), (i32 (ld node:$ptr)), [{
|
|||||||
if (ExtType == ISD::NON_EXTLOAD)
|
if (ExtType == ISD::NON_EXTLOAD)
|
||||||
return true;
|
return true;
|
||||||
if (ExtType == ISD::EXTLOAD)
|
if (ExtType == ISD::EXTLOAD)
|
||||||
return LD->getAlignment() >= 16 && !LD->isVolatile();
|
return LD->getAlignment() >= 32 && !LD->isVolatile();
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}]>;
|
}]>;
|
||||||
|
Reference in New Issue
Block a user