nickdesaulniers added a comment.

In D156154#4529265 <https://reviews.llvm.org/D156154#4529265>, @efriedma wrote:

> As a practical matter, I'm not sure this helps much; ExprConstant should be 
> reasonably fast for simple integers.  The performance issues only really show 
> for structs/arrays.  But maybe it helps a little to handle a few of the most 
> common integer expressions.

Perhaps, but after D151587 <https://reviews.llvm.org/D151587>, 
`ConstExprEmitter` will be tried first before `ExprConstant::Evaluate` (or 
rather `Evaluate` in ExprConstant.cpp; god, why is that a static function and 
not a method???). So it seems bad if we can't just evaluate the constant then 
and there.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D156154

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to