mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-29 22:50:47 +00:00
minor tweaks, reject vector preinc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31717 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c1d6e1fc9c
commit
2fe4bf453b
@ -874,17 +874,22 @@ bool PPCTargetLowering::getPreIndexedAddressParts(SDNode *N, SDOperand &Base,
|
||||
if (!EnablePPCPreinc) return false;
|
||||
|
||||
SDOperand Ptr;
|
||||
MVT::ValueType VT;
|
||||
if (LoadSDNode *LD = dyn_cast<LoadSDNode>(N)) {
|
||||
Ptr = LD->getBasePtr();
|
||||
VT = LD->getValueType(0);
|
||||
} else if (StoreSDNode *ST = dyn_cast<StoreSDNode>(N)) {
|
||||
ST = ST;
|
||||
//Ptr = ST->getBasePtr();
|
||||
//VT = ST->getStoredVT();
|
||||
// TODO: handle stores.
|
||||
return false;
|
||||
Ptr = ST->getBasePtr();
|
||||
VT = ST->getStoredVT();
|
||||
return false; // TODO: Stores.
|
||||
} else
|
||||
return false;
|
||||
|
||||
// PowerPC doesn't have preinc load/store instructions for vectors.
|
||||
if (MVT::isVector(VT))
|
||||
return false;
|
||||
|
||||
// TODO: Handle reg+reg.
|
||||
if (!SelectAddressRegImm(Ptr, Offset, Base, DAG))
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user