[PATCH] D76443: Use ConstantExpr cached APValues if present for code generation

Tyker via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 21 03:43:01 PDT 2020


Tyker added inline comments.


================
Comment at: clang/lib/CodeGen/CGExprConstant.cpp:1871
+llvm::Constant *CodeGenModule::EmitConstantValue(const APValue &Value,
+                                                 QualType DestType,
+                                                 CodeGenFunction *CGF) {
----------------
this looks like it is doing the same thing as `llvm::Constant *ConstantEmitter::tryEmitAbstract(const APValue &value, QualType T)` how is it different ?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76443/new/

https://reviews.llvm.org/D76443





More information about the cfe-commits mailing list