This allow to avoid materialize constants which would required 2 instructions (mov plus movk for instance) when optimizing for size.
Details
Diff Detail
Event Timeline
TargetLoweringBase::isFPImmLegal() could have a default value of false for ForCodeSize.
| include/llvm/CodeGen/TargetLowering.h | ||
|---|---|---|
| 782 | CamelCase. | |
| lib/Target/AArch64/AArch64ISelLowering.cpp | ||
| 5395 | Ditto. | |
| lib/Target/AArch64/AArch64ISelLowering.h | ||
| 290 | Ditto. | |
| lib/Target/AMDGPU/AMDGPUISelLowering.cpp | ||
| 643 | Ditto. | |
| lib/Target/AMDGPU/AMDGPUISelLowering.h | ||
| 165 | Ditto. | |
| lib/Target/ARM/ARMISelLowering.cpp | ||
| 14371 | Ditto. | |
| lib/Target/ARM/ARMISelLowering.h | ||
| 482 | Ditto. | |
| lib/Target/Hexagon/HexagonISelLowering.cpp | ||
| 2928 | Ditto. | |
| lib/Target/Hexagon/HexagonISelLowering.h | ||
| 288 | Ditto. | |
| lib/Target/Mips/MipsISelLowering.cpp | ||
| 4150 | Ditto. | |
| lib/Target/Mips/MipsISelLowering.h | ||
| 679 | Ditto. | |
| lib/Target/PowerPC/PPCISelLowering.cpp | ||
| 14326 | Ditto. | |
| lib/Target/PowerPC/PPCISelLowering.h | ||
| 891 | Ditto. | |
| lib/Target/SystemZ/SystemZISelLowering.cpp | ||
| 695 | Ditto. | |
| lib/Target/SystemZ/SystemZISelLowering.h | ||
| 404 | Ditto. | |
| lib/Target/X86/X86ISelLowering.cpp | ||
| 4804 | Ditto. | |
| lib/Target/X86/X86ISelLowering.h | ||
| 1013 | Ditto. | |
| lib/Target/AArch64/AArch64ISelLowering.cpp | ||
|---|---|---|
| 5407 | Oops! | |
| lib/Target/ARM/ARMISelLowering.cpp | ||
| 4177 | Should this be in another patch? | |
| 4182 | Ditto. | |
| 4188 | Ditto. | |
| 4216 | Ditto. | |
| 13705 | ? | |
| lib/Target/SystemZ/SystemZISelLowering.cpp | ||
| 3742 | Ditto. | |
| lib/Target/SystemZ/SystemZISelLowering.h | ||
| 646 | Should this be in another patch? | |
| lib/Target/X86/X86ISelLowering.cpp | ||
| 6909 | Ditto. | |
| 7479 | Ditto. | |
| 7510 | Ditto. | |
| 28873 | Ditto. | |
| 32820 | Ditto. | |
| 41950 | Ditto. | |
| lib/Target/AArch64/AArch64ISelLowering.cpp | ||
|---|---|---|
| 5407 | Hi Evandro, I am not following your remarks. At least on phabricator they are pointing on code section that has not been actually changed. Should I submit the patch again? | |
| lib/Target/AArch64/AArch64ISelLowering.cpp | ||
|---|---|---|
| 5407 | I don't know what Phabricator showed me before either. Please, ignore my previous review. I'll go over the patch again. | |
CamelCase.