<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">You might want to also ask on <a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a> as it sounds related to Clang.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Nov 23, 2019 at 4:36 AM Nikita via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I have a function which exceeds default constexpr step limit of clang. I <br>
would like to optimize that function, but it is very hard to see whether <br>
or not the changes I've made do in fact reduce number of steps per <br>
evaluation. I have not found how to see that number for a specific <br>
expression, and wanted to see if it is possible to add that feature. It <br>
could be a diagnostic, or just a file output.<br>
<br>
I've looked a little at ExprConstant.cpp in AST, but there is a lot <br>
going on in that file. I've found StepsLeft variable, which tracks how <br>
many steps has been executed already, but I'm struggling to understand <br>
where constexpr execution begins and ends, and how to output the <br>
necessary message. I have literally several hours of experience with the <br>
code base and cannot wrap my head around it.<br>
<br>
If someone could help out with adding that diagnostic, or provide other <br>
ways to get number of execution steps, that would be great.<br>
<br>
Regards,<br>
Nikita Alekseev<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>