tmoreau89 commented on a change in pull request #5842:
URL: https://github.com/apache/incubator-tvm/pull/5842#discussion_r443090507
##########
File path: src/tir/transforms/lower_tvm_builtin.cc
##########
@@ -86,16 +86,19 @@ class BuiltinLower : public StmtExprMutator {
op = stmt.as<AllocateNode>();
// Get constant allocation bound.
int64_t nbytes = GetVectorBytes(op->dtype);
- if (device_type_.defined()) {
- if (const auto* dev_type = device_type_.as<IntImmNode>()) {
- if (dev_type->value == kDLCPU) {
- int32_t constant_size = op->constant_allocation_size();
- if (constant_size > 0 && constant_size * nbytes <
runtime::kMaxStackAlloca) {
- return stmt;
- }
- }
- }
- }
+ // NOTE(zhanghao): remove special handling for kDLCPU
Review comment:
can you elaborate a little more about the LLVM parameter match error
you're getting?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]