This is an archive of the discontinued LLVM Phabricator instance.

[docs][NFC] Mention instruction selectors in LLVM
AbandonedPublic

Authored by xgupta on Apr 17 2020, 10:03 PM.

Details

Reviewers
rnk
gribozavr
Summary

Mention Instruction Selectors in LLVM.

Diff Detail

Event Timeline

xgupta created this revision.Apr 17 2020, 10:03 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 17 2020, 10:03 PM
craig.topper added inline comments.
llvm/docs/CodeGenerator.rst
725

This doesn't mention -O0. It's also not clear to me why what happens for X86 is relevant in this section since it appears to be target independent.

Thank you sir for reviewing. FastIsel is also enabled at all optimization level for X86 & Sparc(I tested) because every time I need to pass -fast-isel=false for viewing dags using llc. I didn't built LLVM to try other targets.
I think FastIsel is default for all target? I will check & update X86 to all if it is.

xgupta updated this revision to Diff 258504.Apr 18 2020, 3:09 AM
xgupta retitled this revision from [docs][NFC] Mention FastISel as a default instruction selector for X86 target to [docs][NFC] Mention FastISel as a default instruction selector..
xgupta edited the summary of this revision. (Show Details)
xgupta removed a subscriber: craig.topper.

Update Title & Summary

Thank you sir for reviewing. FastIsel is also enabled at all optimization level for X86 & Sparc(I tested) because every time I need to pass -fast-isel=false for viewing dags using llc. I didn't built LLVM to try other targets.
I think FastIsel is default for all target? I will check & update X86 to all if it is.

Fastisel should only be the default if you pass -O0 to llc or the function has the optnone attribute.

xgupta updated this revision to Diff 258534.Apr 18 2020, 11:24 AM

Remove X86 section

Fastisel should only be the default if you pass -O0 to llc or the function has the optnone attribute.

sorry sir I forget to remove -fast-isel=false at other optimization level. I think I should remove the "FastIsel is the default instruction selector for X86 target" line from here.

xgupta updated this revision to Diff 258536.Apr 18 2020, 11:50 AM
xgupta retitled this revision from [docs][NFC] Mention FastISel as a default instruction selector. to [docs][NFC] Mention instruction selectors in LLVM.
xgupta edited the summary of this revision. (Show Details)

Update Title & Summary

xgupta updated this revision to Diff 258581.Apr 18 2020, 11:00 PM

Add a link of GlobalIsel webpage

xgupta added a comment.EditedApr 24 2020, 1:43 PM

Changes are not important so closing request.

xgupta abandoned this revision.Apr 24 2020, 1:43 PM