[llvm-dev] InstSimplify and computeKnownBits

Craig Topper via llvm-dev llvm-dev at lists.llvm.org
Mon Apr 17 10:22:02 PDT 2017


Today, InstSimplify calls computeKnownBits to try to fold to a constant
ONLY if it can't find any other simplifications for an instruction.

I think this means if we are able to find an earlier simplification we are
LESS aggressive about creating a constant because we won't even look at
known bits. This seems surprising to me.

Should we be looking at known bits always, or should we remove this save
the compile time? How often does this allow us to simplify to a constant?

~Craig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170417/43d8cf1a/attachment.html>


More information about the llvm-dev mailing list