[PATCH] D99607: [AArch64] Materialize FP constant in code for large code model
Jonas Hahnfeld via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 30 09:55:30 PDT 2021
Hahnfeld created this revision.
Hahnfeld added reviewers: t.p.northover, zatrazz.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
Hahnfeld requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
When using the large code model with FastISel (for example via
`clang -O0` which adds the `optnone` attribute), FP constants could
still be materialized using `adrp` + `ldr`. Unconditionally enable
the existing path for MachO to materialize the constant in code.
For testing, restore `literal_pools_float.ll` to exercise the constant
pool and add two `optnone`-functions that return a float and a double,
respectively. Consolidate `fpimm.ll` and add a new `fast-isel-fpimm.ll`
to check the code paths taken with FastISel.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D99607
Files:
llvm/lib/Target/AArch64/AArch64FastISel.cpp
llvm/test/CodeGen/AArch64/fast-isel-fpimm.ll
llvm/test/CodeGen/AArch64/fpimm.ll
llvm/test/CodeGen/AArch64/literal_pools_float.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99607.334206.patch
Type: text/x-patch
Size: 8746 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210330/86367f47/attachment.bin>
More information about the llvm-commits
mailing list