Commit fcf5a54
Do not use xor-ing on aarch64
Summary: In most x86_64 microarchitectures, xor reg, reg has an optimization to make it faster. On most aarch64, it does not. Instead, the idiom is to use the zero-register and mov it, as in mov reg, xzr. This commit does that instead.
Reviewed By: alexmalyshev
Differential Revision: D94685862
fbshipit-source-id: 9648b9839d01558937d96edbb59de545b9191ab21 parent aede985 commit fcf5a54
2 files changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2058 | 2058 | | |
2059 | 2059 | | |
2060 | 2060 | | |
2061 | | - | |
| 2061 | + | |
2062 | 2062 | | |
| 2063 | + | |
| 2064 | + | |
2063 | 2065 | | |
2064 | | - | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
2065 | 2071 | | |
2066 | | - | |
| 2072 | + | |
2067 | 2073 | | |
2068 | 2074 | | |
| 2075 | + | |
2069 | 2076 | | |
2070 | 2077 | | |
2071 | 2078 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
459 | | - | |
| 459 | + | |
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
| |||
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
| 477 | + | |
477 | 478 | | |
478 | 479 | | |
479 | 480 | | |
| |||
488 | 489 | | |
489 | 490 | | |
490 | 491 | | |
| 492 | + | |
491 | 493 | | |
492 | 494 | | |
493 | 495 | | |
| |||
0 commit comments