mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-11 10:25:41 +00:00
FastISel support for i1 PHI nodes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56069 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -5612,8 +5612,13 @@ SelectionDAGISel::HandlePHINodesInSuccessorBlocksFast(BasicBlock *LLVMBB,
|
|||||||
// exactly one register for each non-void instruction.
|
// exactly one register for each non-void instruction.
|
||||||
MVT VT = TLI.getValueType(PN->getType(), /*AllowUnknown=*/true);
|
MVT VT = TLI.getValueType(PN->getType(), /*AllowUnknown=*/true);
|
||||||
if (VT == MVT::Other || !TLI.isTypeLegal(VT)) {
|
if (VT == MVT::Other || !TLI.isTypeLegal(VT)) {
|
||||||
SDL->PHINodesToUpdate.resize(OrigNumPHINodesToUpdate);
|
// Promote MVT::i1.
|
||||||
return false;
|
if (VT == MVT::i1)
|
||||||
|
VT = TLI.getTypeToTransformTo(VT);
|
||||||
|
else {
|
||||||
|
SDL->PHINodesToUpdate.resize(OrigNumPHINodesToUpdate);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Value *PHIOp = PN->getIncomingValueForBlock(LLVMBB);
|
Value *PHIOp = PN->getIncomingValueForBlock(LLVMBB);
|
||||||
|
Reference in New Issue
Block a user