forked from OSchip/llvm-project
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.
llvm-svn: 135462
This commit is contained in:
parent
74549c82ad
commit
8608e6e913
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue