diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-05-13 18:59:59 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-05-13 18:59:59 +0000 |
commit | b6564433662d6c8ecef5982c8d3f7073be0f968a (patch) | |
tree | 3866571ed1e9bb1d20baf12ff2d62484fdbabc12 | |
parent | 7171c836a93024d523b457b5a98782fa7ad5c97b (diff) | |
download | external_llvm-b6564433662d6c8ecef5982c8d3f7073be0f968a.zip external_llvm-b6564433662d6c8ecef5982c8d3f7073be0f968a.tar.gz external_llvm-b6564433662d6c8ecef5982c8d3f7073be0f968a.tar.bz2 |
- 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
-rw-r--r-- | lib/Target/X86/X86InstrInfo.td | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/X86/X86InstrInfo.td b/lib/Target/X86/X86InstrInfo.td index ab14fd4..159b011 100644 --- a/lib/Target/X86/X86InstrInfo.td +++ b/lib/Target/X86/X86InstrInfo.td @@ -229,8 +229,8 @@ def i32immSExt8 : PatLeaf<(i32 imm), [{ }]>; // 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 @@ def loadi16 : PatFrag<(ops node:$ptr), (i16 (ld node:$ptr)), [{ 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 @@ 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 && !LD->isVolatile(); + return LD->getAlignment() >= 32 && !LD->isVolatile(); } return false; }]>; |