[llvm-commits] [llvm] r51061 - /llvm/trunk/lib/Target/X86/X86InstrInfo.td
Evan Cheng
evan.cheng at apple.com
Tue May 13 11:59:59 PDT 2008
Author: evancheng
Date: Tue May 13 13:59:59 2008
New Revision: 51061
URL: http://llvm.org/viewvc/llvm-project?rev=51061&view=rev
Log:
- Fix the pasto in the fix for a previous pasto.
- Incorporate Chris' comment suggestion.
Modified:
llvm/trunk/lib/Target/X86/X86InstrInfo.td
Modified: llvm/trunk/lib/Target/X86/X86InstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrInfo.td?rev=51061&r1=51060&r2=51061&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrInfo.td (original)
+++ llvm/trunk/lib/Target/X86/X86InstrInfo.td Tue May 13 13:59:59 2008
@@ -229,8 +229,8 @@
}]>;
// Helper fragments for loads.
-// It's always safe to treat a anyext i16 load as a i32 load. Ditto for
-// i8 to i16.
+// It's always safe to treat a anyext i16 load as a i32 load if the i16 is
+// known to be 32-bit aligned or better. Ditto for i8 to i16.
def loadi16 : PatFrag<(ops node:$ptr), (i16 (ld node:$ptr)), [{
if (LoadSDNode *LD = dyn_cast<LoadSDNode>(N)) {
if (LD->getAddressingMode() != ISD::UNINDEXED)
@@ -239,7 +239,7 @@
if (ExtType == ISD::NON_EXTLOAD)
return true;
if (ExtType == ISD::EXTLOAD)
- return LD->getAlignment() >= 8 && !LD->isVolatile();
+ return LD->getAlignment() >= 16 && !LD->isVolatile();
}
return false;
}]>;
@@ -252,7 +252,7 @@
if (ExtType == ISD::NON_EXTLOAD)
return true;
if (ExtType == ISD::EXTLOAD)
- return LD->getAlignment() >= 16 && !LD->isVolatile();
+ return LD->getAlignment() >= 32 && !LD->isVolatile();
}
return false;
}]>;
More information about the llvm-commits
mailing list