[deploy]测试

This commit is contained in:
Lixuanwang
2025-08-05 19:04:04 +08:00
parent de1f74c425
commit c4d1e31273
4 changed files with 27 additions and 5 deletions

View File

@@ -181,7 +181,7 @@ void RISCv64ISel::selectNode(DAGNode* node) {
// 加载其值的责任被转移给了使用它们的父节点如STORE, BINARY等
case DAGNode::ARGUMENT:
case DAGNode::CONSTANT:
case DAGNode::ALLOCA_ADDR:
case DAGNode::ALLOCA_ADDR: {
if (node->value) {
// GlobalValue objects (global variables) should not get virtual registers
// since they represent memory addresses, not register-allocated values
@@ -190,7 +190,17 @@ void RISCv64ISel::selectNode(DAGNode* node) {
getVReg(node->value);
}
}
if (auto const_val1 = dynamic_cast<ConstantValue*>(node->value)) {
if (const_val1->getInt() == 128875) {
foo3 = 1;
std::cerr << "Found constant 128875 in selectNode!" << std::endl;
}
}
break;
}
case DAGNode::FP_CONSTANT: {
// RISC-V没有直接加载浮点立即数的指令