diff options
| author | Nikita Popov <npopov@redhat.com> | 2023-04-25 10:04:49 +0200 |
|---|---|---|
| committer | Nikita Popov <npopov@redhat.com> | 2023-04-26 09:26:47 +0200 |
| commit | 43436993f48b1d75d9d80796cb0889ce7d191888 (patch) | |
| tree | 9dc98c1fd8da62ce3c0a196fb0405a7884ecc50c /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | d12c471b892d2eb3087f7b1f8e13516122535966 (diff) | |
[LICM] Don't try to constant fold instructions
This was introduced in 030f02021b6359ec5641622cf1aa63d873ecf55a as
an alleged compile-time optimization. In reality, trying to constant
fold instructions is more expensive than just hoisting them. In a
standard pipeline, LICM tends to run either after a run of
LoopInstSimplify or InstCombine, so LICM doesn't really see constant
foldable instructions in the first place, and the attempted fold
is futile.
This makes for a very minor compile-time improvement.
Differential Revision: https://reviews.llvm.org/D149134
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
