[PATCH] D149134: [LICM] Don't try to constant fold instructions

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 26 00:20:19 PDT 2023


nikic added a comment.

In D149134#4295312 <https://reviews.llvm.org/D149134#4295312>, @mkazantsev wrote:

> Just curious, what makes it so expensive? Is it `SafetyInfo` update?

No, it's the constant folding itself. E.g. even if you have some non-foldable operation will all-constant operands (like a load from global or call with constants) it will still do quite a bit of work, such as recursively folding all the constant operands with datalayout.


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

https://reviews.llvm.org/D149134



More information about the llvm-commits mailing list