Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a hasTraps() check in B3::Value::effects()
https://bugs.webkit.org/show_bug.cgi?id=273648 rdar://127458113 Reviewed by Yusuke Suzuki. Some profiling of reduceStrength showed we spent a number of samples in B3::Value::effects() checking traps(). But most B3 Kinds don't ever have traps(). Since we just switched on the Kind we can use `hasTraps()` hoist the traps() check into the cases that actually use it. * Source/JavaScriptCore/b3/B3EliminateDeadCode.cpp: (JSC::B3::eliminateDeadCodeImpl): * Source/JavaScriptCore/b3/B3Value.cpp: (JSC::B3::Value::effects const): Canonical link: https://commits.webkit.org/278338@main
- Loading branch information