aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test/configuration.py
diff options
context:
space:
mode:
authorLeandro Lupori <leandro.lupori@linaro.org>2025-09-24 11:52:39 -0300
committerGitHub <noreply@github.com>2025-09-24 11:52:39 -0300
commit8d8bd0aa00b972b4414af4905d360cd28ac20514 (patch)
tree17aae40d5b8e89970084e34753296a8f7295de54 /lldb/packages/Python/lldbsuite/test/configuration.py
parent010f96aa9188df3a5bad585538dc83a5cb2bad87 (diff)
downloadllvm-8d8bd0aa00b972b4414af4905d360cd28ac20514.zip
llvm-8d8bd0aa00b972b4414af4905d360cd28ac20514.tar.gz
llvm-8d8bd0aa00b972b4414af4905d360cd28ac20514.tar.bz2
[flang] Simplify the comparison of characters (#154593)
Because character comparison appends spaces to the shorter character, calls to trim() that are used only in the comparison can be eliminated. Example: `trim(x) == trim(y)` can be simplified to `x == y` This makes 527.cam4_r about 3% faster, measured on Neoverse V2. This patch implements the optimization above in a new pass: ExpressionSimplification. Although no other expression simplifications are planned at the moment, they could be easily added to the new pass. The ExpressionSimplification pass runs early in the HLFIR pipeline, to make it easy to identify expressions before any transformations occur.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/configuration.py')
0 files changed, 0 insertions, 0 deletions