Open tschuett opened 5 months ago
We don't fold floating point unary ops.
Hi!
This issue may be a good introductory issue for people new to working on LLVM. If you would like to work on this issue, your first steps are:
test/
create fine-grained testing targets, so you can e.g. use make check-clang-ast
to only run Clang's AST tests.git clang-format HEAD~1
to format your changes.If you have any further questions about this issue, don't hesitate to ask via a comment in the thread below.
@llvm/issue-subscribers-good-first-issue
Author: Thorsten Schütt (tschuett)
I'd like to work on this issue.
@tschuett, I will like to work on this issue, if it is available. Thank you
ConstantFoldFBinOp has no support for G_FCEIL https://github.com/llvm/llvm-project/blob/3a63f737e29a2382c8ec26c0d360bd77c01a27a1/llvm/lib/CodeGen/GlobalISel/Utils.cpp#L713
APFloat has no support for ceil.
We have no build vector constant folding for floats: https://github.com/llvm/llvm-project/blob/3a63f737e29a2382c8ec26c0d360bd77c01a27a1/llvm/test/CodeGen/AArch64/extract-vector-elt.ll#L729 and https://github.com/llvm/llvm-project/blob/39c8e87717fbc611b9e84f62edf656608ae52e5c/llvm/lib/CodeGen/GlobalISel/CSEMIRBuilder.cpp#L229