Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c9ff5f4a865ebd053875e5a2fb5216dc73423ece
https://github.com/WebKit/WebKit/commit/c9ff5f4a865ebd053875e5a2fb5216dc73423ece
Author: Yijia Huang <[email protected]>
Date: 2025-07-14 (Mon, 14 Jul 2025)
Changed paths:
M Source/JavaScriptCore/b3/B3ReduceStrength.cpp
Log Message:
-----------
[JSC] Optimize constant deduplication with single HashMap lookup
https://bugs.webkit.org/show_bug.cgi?id=295848
rdar://155713217
Reviewed by Yusuke Suzuki.
Replace HashMap::get() followed by HashMap::add() with a single HashMap::add()
call in constant value deduplication. This reduces HashMap lookups from two
to one operation per constant.
The optimization uses HashMap::add()'s return value to determine if the constant
already exists, eliminating the need for a separate lookup operation while
maintaining the same constant deduplication and root block hoisting behavior.
Canonical link: https://commits.webkit.org/297337@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes