+3
−5
Loading
Code::lookupTrap has uint32_t target = ((uint8_t*)pc) - segment(t).base(); in a loop in which it is invariant. This patch lifts it out of the loop since the clang++ 15.0.7 does not appear to do so, even at -O2. Reduces (host) instruction count by around 10% on some artificial small wasm-gc tests. Differential Revision: https://phabricator.services.mozilla.com/D173275