- Don't treat anyext 16-bit load as a 32-bit load if it's volatile.
authorEvan Cheng <evan.cheng@apple.com>
Tue, 13 May 2008 16:45:56 +0000 (16:45 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 13 May 2008 16:45:56 +0000 (16:45 +0000)
- Correct a pasto.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51054 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86InstrInfo.td

index afe420625c996b910e7cf0746c3076d027d31d60..ab14fd401266713975ead03d5948da03fc948110 100644 (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;
 }]>;