Skip to content
Snippets Groups Projects
Commit cc2912ac authored by kotsifa2's avatar kotsifa2
Browse files

Bug fix: no code generation should be attempted by the X86 backend

for allocation nodes.
parent 9c8de7e5
No related branches found
No related tags found
No related merge requests found
......@@ -1659,6 +1659,16 @@ void CGT_X86::codeGen(DFLeafNode* N) {
return;
}
// At this point, the X86 backend does not support code generation for
// the case where allocation node is used, so we skip. This means that a
// CPU version will not be created, and therefore code generation will
// only succeed if another backend (nvptx or spir) has been invoked to
// generate a node function for the node including the allocation node.
if (N->isAllocationNode()) {
DEBUG(errs() << "Skipping allocation node\n");
return;
}
// Check if clone already exists. If it does, it means we have visited this
// function before and nothing else needs to be done for this leaf node.
// if(N->getGenFunc() != NULL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment