mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Add a couple asserts so it will be easier to debug if we accidentally pass indexed loads/stores to the legalizer.
llvm-svn: 144767
This commit is contained in:
parent
d410d36be0
commit
ce0cea66b9
@ -293,6 +293,8 @@ SelectionDAGLegalize::ExpandConstantFP(ConstantFPSDNode *CFP, bool UseCP) {
|
||||
static void ExpandUnalignedStore(StoreSDNode *ST, SelectionDAG &DAG,
|
||||
const TargetLowering &TLI,
|
||||
SelectionDAGLegalize *DAGLegalize) {
|
||||
assert(ST->getAddressingMode() == ISD::UNINDEXED &&
|
||||
"unaligned indexed stores not implemented!");
|
||||
SDValue Chain = ST->getChain();
|
||||
SDValue Ptr = ST->getBasePtr();
|
||||
SDValue Val = ST->getValue();
|
||||
@ -413,6 +415,8 @@ static void
|
||||
ExpandUnalignedLoad(LoadSDNode *LD, SelectionDAG &DAG,
|
||||
const TargetLowering &TLI,
|
||||
SDValue &ValResult, SDValue &ChainResult) {
|
||||
assert(LD->getAddressingMode() == ISD::UNINDEXED &&
|
||||
"unaligned indexed loads not implemented!");
|
||||
SDValue Chain = LD->getChain();
|
||||
SDValue Ptr = LD->getBasePtr();
|
||||
EVT VT = LD->getValueType(0);
|
||||
|
Loading…
Reference in New Issue
Block a user