diff options
-rw-r--r-- | lib/Target/X86/X86InstrInfo.td | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/Target/X86/X86InstrInfo.td b/lib/Target/X86/X86InstrInfo.td index 3aa3447..325dde0 100644 --- a/lib/Target/X86/X86InstrInfo.td +++ b/lib/Target/X86/X86InstrInfo.td @@ -286,7 +286,7 @@ def loadi16 : PatFrag<(ops node:$ptr), (i16 (unindexedload node:$ptr)), [{ LoadSDNode *LD = cast<LoadSDNode>(N); if (const Value *Src = LD->getSrcValue()) if (const PointerType *PT = dyn_cast<PointerType>(Src->getType())) - if (PT->getAddressSpace() != 0) + if (PT->getAddressSpace() > 255) return false; ISD::LoadExtType ExtType = LD->getExtensionType(); if (ExtType == ISD::NON_EXTLOAD) @@ -300,7 +300,7 @@ def loadi16_anyext : PatFrag<(ops node:$ptr), (i32 (unindexedload node:$ptr)), [ LoadSDNode *LD = cast<LoadSDNode>(N); if (const Value *Src = LD->getSrcValue()) if (const PointerType *PT = dyn_cast<PointerType>(Src->getType())) - if (PT->getAddressSpace() != 0) + if (PT->getAddressSpace() > 255) return false; ISD::LoadExtType ExtType = LD->getExtensionType(); if (ExtType == ISD::EXTLOAD) @@ -312,7 +312,7 @@ def loadi32 : PatFrag<(ops node:$ptr), (i32 (unindexedload node:$ptr)), [{ LoadSDNode *LD = cast<LoadSDNode>(N); if (const Value *Src = LD->getSrcValue()) if (const PointerType *PT = dyn_cast<PointerType>(Src->getType())) - if (PT->getAddressSpace() != 0) + if (PT->getAddressSpace() > 255) return false; ISD::LoadExtType ExtType = LD->getExtensionType(); if (ExtType == ISD::NON_EXTLOAD) @@ -326,7 +326,7 @@ def nvloadi32 : PatFrag<(ops node:$ptr), (i32 (unindexedload node:$ptr)), [{ LoadSDNode *LD = cast<LoadSDNode>(N); if (const Value *Src = LD->getSrcValue()) if (const PointerType *PT = dyn_cast<PointerType>(Src->getType())) - if (PT->getAddressSpace() != 0) + if (PT->getAddressSpace() > 255) return false; if (LD->isVolatile()) return false; @@ -348,14 +348,14 @@ def gsload : PatFrag<(ops node:$ptr), (load node:$ptr), [{ def loadi8 : PatFrag<(ops node:$ptr), (i8 (load node:$ptr)), [{ if (const Value *Src = cast<LoadSDNode>(N)->getSrcValue()) if (const PointerType *PT = dyn_cast<PointerType>(Src->getType())) - if (PT->getAddressSpace() != 0) + if (PT->getAddressSpace() > 255) return false; return true; }]>; def loadi64 : PatFrag<(ops node:$ptr), (i64 (load node:$ptr)), [{ if (const Value *Src = cast<LoadSDNode>(N)->getSrcValue()) if (const PointerType *PT = dyn_cast<PointerType>(Src->getType())) - if (PT->getAddressSpace() != 0) + if (PT->getAddressSpace() > 255) return false; return true; }]>; @@ -363,21 +363,21 @@ def loadi64 : PatFrag<(ops node:$ptr), (i64 (load node:$ptr)), [{ def loadf32 : PatFrag<(ops node:$ptr), (f32 (load node:$ptr)), [{ if (const Value *Src = cast<LoadSDNode>(N)->getSrcValue()) if (const PointerType *PT = dyn_cast<PointerType>(Src->getType())) - if (PT->getAddressSpace() != 0) + if (PT->getAddressSpace() > 255) return false; return true; }]>; def loadf64 : PatFrag<(ops node:$ptr), (f64 (load node:$ptr)), [{ if (const Value *Src = cast<LoadSDNode>(N)->getSrcValue()) if (const PointerType *PT = dyn_cast<PointerType>(Src->getType())) - if (PT->getAddressSpace() != 0) + if (PT->getAddressSpace() > 255) return false; return true; }]>; def loadf80 : PatFrag<(ops node:$ptr), (f80 (load node:$ptr)), [{ if (const Value *Src = cast<LoadSDNode>(N)->getSrcValue()) if (const PointerType *PT = dyn_cast<PointerType>(Src->getType())) - if (PT->getAddressSpace() != 0) + if (PT->getAddressSpace() > 255) return false; return true; }]>; |