wrongtest commented on a change in pull request #10582:
URL: https://github.com/apache/tvm/pull/10582#discussion_r825562693



##########
File path: src/target/llvm/codegen_llvm.h
##########
@@ -439,7 +439,7 @@ class CodeGenLLVM : public ExprFunctor<llvm::Value*(const 
PrimExpr&)>,
   // deep comparison of PrimExpr
   ExprDeepEqual deep_equal_;
   // binding of let variables. Enables duplicate var defs that map to same 
value
-  std::unordered_map<Var, const LetNode*, ObjectPtrHash, ObjectPtrEqual> 
let_binding_;
+  std::unordered_map<Var, PrimExpr, ObjectPtrHash, ObjectPtrEqual> 
let_binding_;

Review comment:
       A local expression can be visited (eg, a simplify res) and some pointer 
are recorded. But when the local scope ends the backing object is expired.




-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to