mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-26 12:46:00 +00:00
Fix some bugs andrew noticed legalizing memset for alpha
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19969 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f189bcec00
commit
deb692e756
@ -710,17 +710,17 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
|
||||
case ISD::MEMSET:
|
||||
case ISD::MEMCPY:
|
||||
case ISD::MEMMOVE: {
|
||||
Tmp1 = LegalizeOp(Node->getOperand(0)); // Function
|
||||
Tmp1 = LegalizeOp(Node->getOperand(0)); // Chain
|
||||
Tmp2 = LegalizeOp(Node->getOperand(1)); // Pointer
|
||||
|
||||
if (Node->getOpcode() == ISD::MEMSET) { // memset = ubyte
|
||||
switch (getTypeAction(Node->getOperand(2).getValueType())) {
|
||||
case Expand: assert(0 && "Cannot expand a byte!");
|
||||
case Legal:
|
||||
Tmp3 = LegalizeOp(Node->getOperand(1));
|
||||
Tmp3 = LegalizeOp(Node->getOperand(2));
|
||||
break;
|
||||
case Promote:
|
||||
Tmp3 = PromoteOp(Node->getOperand(1));
|
||||
Tmp3 = PromoteOp(Node->getOperand(2));
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user