This patch is proposing a fix for patch https://reviews.llvm.org/D101759
on none tail call math function conversion to MASS call.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LGTM other than the test cases that need to be improved.
llvm/test/CodeGen/PowerPC/lower-intrinsics-afn-mass_notail.ll | ||
---|---|---|
6 | This check is not adequate. You have added code to ensure that the function isn't tail called when it isn't in a tail call position, yet your test doesn't check anything along those lines. |
llvm/lib/Target/PowerPC/PPCISelLowering.cpp | ||
---|---|---|
17760 | What is the reason that we don't want to use TLI.makeLibCall here? |
llvm/lib/Target/PowerPC/PPCISelLowering.cpp | ||
---|---|---|
17760 | At first, I thought this function will be way simpler than TLI.makeLibCall but now that they are too similar, I will try to call makeLibCall function. There are still some implementation details that needs to be take care of, like RTLIB::Libcall and CallOptions. Since I am fixing a bug here, I will commit this patch as is and will work on creating a new patch to use TLI.makeLibCall. |
llvm/lib/Target/PowerPC/PPCISelLowering.cpp | ||
---|---|---|
17760 | Sounds good. Thanks! |
What is the reason that we don't want to use TLI.makeLibCall here?