This patch prevents CTR loops optimization when using soft float operations inside loop body.
Soft float operations use function calls, but function calls are not allowed inside CTR optimized loops.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
A few minor comments, otherwise, LGTM.
lib/Target/PowerPC/PPCCTRLoops.cpp | ||
---|---|---|
425 | Please add blank lines before and after this if statement to visually separate it from the surrounding checks. | |
test/CodeGen/PowerPC/ctrloops-softfloat.ll | ||
137 | Please remove unnecessary metadata (looks like none of it is necessary) |
Comment Actions
- Made changes recommended in comments
- Updated the run line in test to enable optimizations (-O1)
Please add blank lines before and after this if statement to visually separate it from the surrounding checks.