mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-09 10:31:14 +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:
parent
8211648757
commit
74321abb4f
@ -5612,8 +5612,13 @@ SelectionDAGISel::HandlePHINodesInSuccessorBlocksFast(BasicBlock *LLVMBB,
|
||||
// exactly one register for each non-void instruction.
|
||||
MVT VT = TLI.getValueType(PN->getType(), /*AllowUnknown=*/true);
|
||||
if (VT == MVT::Other || !TLI.isTypeLegal(VT)) {
|
||||
SDL->PHINodesToUpdate.resize(OrigNumPHINodesToUpdate);
|
||||
return false;
|
||||
// Promote MVT::i1.
|
||||
if (VT == MVT::i1)
|
||||
VT = TLI.getTypeToTransformTo(VT);
|
||||
else {
|
||||
SDL->PHINodesToUpdate.resize(OrigNumPHINodesToUpdate);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Value *PHIOp = PN->getIncomingValueForBlock(LLVMBB);
|
||||
|
Loading…
Reference in New Issue
Block a user