diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-07-19 02:24:07 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-07-19 02:24:07 +0000 |
commit | 9710f06d668bd790a2a18a6c2cd65b35414d66ab (patch) | |
tree | c7c2d49fa655988b86020d2c1313d6644c79021a /include/llvm/Target | |
parent | ba034c0a2e71303c7cf3f43ca8e69dc8436b32e2 (diff) | |
download | llvm-9710f06d668bd790a2a18a6c2cd65b35414d66ab.tar.gz llvm-9710f06d668bd790a2a18a6c2cd65b35414d66ab.tar.bz2 llvm-9710f06d668bd790a2a18a6c2cd65b35414d66ab.tar.xz |
Make isLoadExtLegal and isTruncStoreLegal check what the name says. :) This might have some minor effect on CellSPU, but all other targets should be unaffected. Fixing per report from Damien Vincent on llvmdev.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135462 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
-rw-r--r-- | include/llvm/Target/TargetLowering.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index 8bb497ef05..3484a79c73 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -383,9 +383,7 @@ public: /// isLoadExtLegal - Return true if the specified load with extension is legal /// on this target. bool isLoadExtLegal(unsigned ExtType, EVT VT) const { - return VT.isSimple() && - (getLoadExtAction(ExtType, VT) == Legal || - getLoadExtAction(ExtType, VT) == Custom); + return VT.isSimple() && getLoadExtAction(ExtType, VT) == Legal; } /// getTruncStoreAction - Return how this store with truncation should be @@ -404,8 +402,7 @@ public: /// legal on this target. bool isTruncStoreLegal(EVT ValVT, EVT MemVT) const { return isTypeLegal(ValVT) && MemVT.isSimple() && - (getTruncStoreAction(ValVT, MemVT) == Legal || - getTruncStoreAction(ValVT, MemVT) == Custom); + getTruncStoreAction(ValVT, MemVT) == Legal; } /// getIndexedLoadAction - Return how the indexed load should be treated: |