The clang compiler by default uses FastISel when invoked with -O0, which is also the default.
In that case, passing of -mxgot doesn't get honored, i.e. the code path that is to deal with large got is not taken.
Clang produces same output regardless of -mxgot being present or not.
This change checks whether -mxgot is passed as an option, and turns off FastISel if it is.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM. Comment inlined.
lib/Target/Mips/MipsISelLowering.cpp | ||
---|---|---|
474 ↗ | (On Diff #100390) | Also, update this list of reasons why we disable fastisel to include the xgot case. |