Valiantsin Dzerakh and Claude Opus 5.5
5c48f62fca
The FP fast paths of the lifted code check FPCR.RMode inside the result compare and pass vector slow-path operands through the Cpu
...
The result check of every scalar and vector FP op compares |r| against a per-thread threshold in the Cpu (fp_th_s,
fp_th_d): the smallest normal in round-to-nearest, NaN under a directed RMode, so a directed mode sends every result
to the redo path and the separate load and test of c->fpcr per op goes. rt_fpcr_threshold sets it; rt_fpcr_sync
calls it on every host, and the Cpu inits and the fiber switch's fpcr copy call it too.
The vector slow path FN(vredo) takes its operands from c->fp_arg instead of three stack copies per call site, which
takes ___chkstk_ms out of the large lifted functions (275 call sites in main to 5). It reruns only the lanes that
failed the check. A NaN result in round-to-nearest goes from redo straight to fix with the FZ-flushed operands. The
static FP helpers use preserve_most, so their cold call sites do not spill the caller-saved registers.
Results are bit-identical to the old headers (equivalence harness of build/v143-genko/static2, 200M cases).
On the 42 hottest 1.4.3 functions: instructions -8.2%, bytes -8.8%, hot-path instructions -4.3%.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-15 00:31:00 +03:00
..
2026-11-11 13:15:39 +00:00
2026-11-12 23:21:04 +03:00
2026-10-23 23:54:57 +03:00
2026-11-14 23:07:37 +03:00
2026-11-03 16:39:50 +03:00
2026-11-02 17:43:29 +03:00
2026-10-25 18:28:00 +03:00
2026-10-31 13:59:28 +03:00
2026-11-13 08:38:08 +03:00
2026-11-13 08:38:08 +03:00
2026-11-02 03:16:58 +03:00
2026-10-23 22:27:54 +03:00
2026-11-14 22:28:42 +03:00
2026-11-02 03:16:58 +03:00
2026-10-23 22:27:54 +03:00
2026-11-13 08:38:08 +03:00
2026-11-14 22:28:42 +03:00
2026-10-31 07:34:59 +03:00
2026-11-07 16:38:26 +03:00
2026-11-14 19:05:18 +03:00
2026-10-31 07:08:11 -05:00
2026-11-14 22:19:51 +03:00
2026-11-14 23:07:37 +03:00
2026-11-12 19:02:31 +03:00
2026-11-14 15:12:35 +03:00
2026-11-01 14:16:53 +03:00
2026-10-31 10:02:16 -04:00
2026-10-30 15:29:53 +01:00
2026-11-15 00:31:00 +03:00
2026-11-11 14:48:24 +01:00
2026-11-03 20:56:36 +03:00
2026-11-01 10:10:09 +03:00
2026-10-23 22:27:54 +03:00
2026-11-03 17:31:58 +08:00
2026-11-03 08:40:13 +08:00
2026-10-31 13:26:42 +03:00
2026-10-29 16:56:56 -03:00
2026-10-29 16:56:56 -03:00
2026-11-01 07:09:13 +08:00
2026-11-02 17:36:09 +03:00
2026-11-02 17:36:09 +03:00
2026-11-02 17:36:09 +03:00
2026-11-10 18:44:18 +03:00
2026-11-15 00:31:00 +03:00
2026-11-12 19:02:31 +03:00
2026-10-27 13:40:34 +03:00
2026-10-27 13:40:34 +03:00
2026-11-12 18:29:24 +03:00
2026-11-12 03:29:24 +02:00
2026-10-29 16:56:56 -03:00
2026-11-04 15:00:36 +03:00
2026-11-10 23:24:11 +03:00
2026-11-01 21:08:13 +08:00
2026-11-04 18:05:21 +03:00
2026-10-31 21:17:12 +01:00
2026-11-02 17:36:09 +03:00
2026-11-05 08:30:33 +03:00
2026-10-29 16:56:56 -03:00
2026-11-10 23:24:11 +03:00
2026-10-31 21:17:12 +01:00
2026-10-31 21:17:12 +01:00
2026-11-12 23:21:04 +03:00
2026-10-31 21:17:12 +01:00
2026-11-14 19:05:18 +03:00
2026-11-14 19:05:18 +03:00
2026-11-14 22:19:51 +03:00
2026-11-14 22:19:51 +03:00
2026-11-12 18:21:53 +03:00
2026-11-02 17:36:09 +03:00
2026-11-12 18:21:53 +03:00
2026-10-29 16:56:56 -03:00
2026-11-11 14:48:24 +01:00
2026-11-14 22:19:51 +03:00
2026-11-12 03:29:24 +02:00
2026-11-14 19:05:18 +03:00
2026-10-29 16:56:56 -03:00
2026-11-14 19:05:18 +03:00
2026-11-15 00:31:00 +03:00
2026-11-01 10:10:09 +03:00
2026-11-15 00:31:00 +03:00
2026-11-15 00:31:00 +03:00
2026-11-10 20:13:59 +01:00
2026-11-14 11:35:29 +03:00
2026-11-11 13:12:21 +03:00
2026-11-06 15:51:42 +01:00
2026-11-06 15:51:42 +01:00
2026-11-10 14:32:15 -05:00
2026-10-31 13:26:42 +03:00
2026-11-12 03:29:24 +02:00
2026-11-15 00:31:00 +03:00
2026-11-03 23:27:39 +01:00
2026-10-31 14:11:46 +00:00
2026-10-31 14:11:46 +00:00
2026-11-09 09:53:30 +03:00
2026-11-12 23:41:44 +01:00
2026-11-10 23:24:11 +03:00
2026-11-07 10:55:55 +01:00
2026-10-29 12:58:01 +03:00
2026-11-14 11:35:29 +03:00
2026-11-02 10:40:51 -03:00
2026-10-29 12:58:01 +03:00
2026-11-04 15:00:36 +03:00
2026-10-29 16:56:56 -03:00
2026-10-23 22:27:54 +03:00
2026-10-27 13:12:50 +03:00
2026-10-26 14:31:41 +03:00
2026-10-23 22:27:54 +03:00
2026-10-23 22:27:54 +03:00
2026-11-09 09:53:30 +03:00
2026-11-12 20:31:40 +03:00
2026-10-29 16:56:56 -03:00
2026-11-10 23:24:11 +03:00
2026-11-13 08:38:08 +03:00
2026-11-03 23:41:10 +01:00
2026-11-06 19:20:20 +01:00
2026-10-31 14:11:46 +00:00
2026-11-13 08:38:08 +03:00
2026-10-27 13:12:50 +03:00
2026-10-26 17:50:40 +03:00
2026-11-08 11:46:10 +03:00
2026-11-03 20:09:22 +03:00
2026-11-03 20:09:22 +03:00
2026-11-06 10:55:42 +03:00
2026-10-29 16:56:56 -03:00
2026-10-29 16:56:56 -03:00
2026-10-29 16:56:56 -03:00
2026-11-14 23:07:00 +03:00
2026-11-05 10:49:55 -03:00
2026-11-05 10:49:55 -03:00
2026-11-05 10:49:55 -03:00
2026-10-23 22:27:54 +03:00
2026-11-13 08:38:08 +03:00
2026-10-29 16:56:56 -03:00
2026-10-29 16:56:56 -03:00
2026-11-15 00:31:00 +03:00
2026-11-15 00:31:00 +03:00
2026-11-06 10:52:28 +03:00
2026-10-29 17:29:31 -03:00
2026-10-31 13:26:42 +03:00
2026-10-29 16:56:56 -03:00
2026-10-29 16:56:56 -03:00
2026-10-29 12:41:12 +03:00
2026-10-29 12:41:12 +03:00
2026-10-31 13:26:42 +03:00
2026-10-23 22:27:54 +03:00
2026-10-25 14:14:46 +03:00
2026-11-07 10:55:55 +01:00
2026-10-31 07:27:46 +03:00
2026-10-26 16:48:02 +03:00
2026-10-30 13:40:04 +03:00
2026-10-26 16:48:02 +03:00
2026-11-14 23:07:37 +03:00
2026-11-14 23:07:37 +03:00
2026-10-29 16:56:56 -03:00
2026-11-09 09:20:09 +03:00
2026-11-10 18:20:16 +01:00
2026-11-10 09:01:54 +03:00
2026-10-31 10:02:16 -04:00
2026-11-10 14:59:34 +01:00
2026-11-08 19:39:17 +03:00
2026-11-07 16:38:26 +03:00
2026-11-14 11:35:29 +03:00
2026-11-14 08:34:52 +03:00
2026-11-08 19:39:18 +03:00
2026-10-31 14:44:48 +03:00
2026-11-14 20:03:24 +03:00
2026-11-11 23:51:01 +03:00
2026-11-08 19:39:17 +03:00
2026-11-13 23:40:01 +03:00
2026-11-13 23:40:01 +03:00
2026-10-31 07:27:46 +03:00
2026-10-31 13:26:42 +03:00
2026-11-12 23:21:04 +03:00
2026-11-09 10:51:49 +03:00
2026-11-12 23:41:44 +01:00
2026-11-03 17:31:58 +08:00
2026-11-10 14:59:31 +01:00
2026-11-03 19:39:49 +03:00
2026-11-08 19:39:17 +03:00
2026-11-14 11:35:29 +03:00
2026-11-14 11:35:29 +03:00
2026-11-08 19:39:17 +03:00
2026-11-10 18:20:16 +01:00
2026-11-13 08:38:20 +03:00
2026-11-08 19:39:17 +03:00
2026-10-23 22:27:54 +03:00
2026-11-10 23:24:11 +03:00
2026-11-03 01:19:10 +08:00