Implements TargetLowering callback 'mayBeEmittedAsTailCall ' that enables CodeGenPrepare to duplicate returns when they might enable function to be tail-called.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM.
Couple of comments:
please split the NFC refactoring from the rest of the patch.
One typo I noticed.
Thanks!
-eric
lib/Target/PowerPC/PPCISelLowering.cpp | ||
---|---|---|
13800 | "guaranteed" |
Comment Actions
Just a few other typos I noticed but forgot to click submit. Wanted to make sure I did so before this gets committed. Feel free to fix these on the commit.
lib/Target/PowerPC/PPCISelLowering.cpp | ||
---|---|---|
4394 | clang-format this - the parameters don't line up. | |
13807 | Elsewhere in this code, the callee is named Callee, why change to CalledFunc? | |
lib/Target/PowerPC/PPCISelLowering.h | ||
1090 | s/duplicate,return/duplicate return | |
test/CodeGen/PowerPC/duplicate-returns-for-tailcall.ll | ||
21 | s/opertunity/opportunity |
s/duplicate,return/duplicate return