This fixes pr55607. Now we can generate BL without nop instruction for internal function for fast-isel.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
The more analysis we do in FastISel, the less "fast" it becomes. And the tradeoff here is simply a nop after a call which hardly seems like a concern at -O0.
Comment Actions
I am fine to abandon this.
But see the touched lines FIXME: We can and should optimize away the NOP for local calls.. And I tested other compilers like xlc/gcc on PowerPC, they are both not generating nop for O0. The nop may also have impact to the linker?
@umesh.kalappa0 are you OK we abandon this patch and cancel the PR https://github.com/llvm/llvm-project/issues/55607?
Comment Actions
As discussed, use option to disable fast-isel to avoid the redundant nop for issue https://github.com/llvm/llvm-project/issues/55607.