Commit d0d0e12
authored
[AArch64] Fix a presumed typo in isFPImmLegal limit. NFC (llvm#106716)
The worst possible case for a double literal goes like:
```
mov ...
movk ..., lsl rust-lang#16
movk ..., lsl rust-lang#32
movk ..., lsl rust-lang#48
fmov ...
```
The limit of 5 in the code gives the impression that `Insn` includes all
instructions including the `fmov`, but that's not true. It only counts
the integer moves. This led me astray on some other work in this area.1 parent ef7b18a commit d0d0e12
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11463 | 11463 | | |
11464 | 11464 | | |
11465 | 11465 | | |
11466 | | - | |
| 11466 | + | |
| 11467 | + | |
| 11468 | + | |
11467 | 11469 | | |
11468 | 11470 | | |
11469 | 11471 | | |
| |||
0 commit comments