We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd70802 commit 3d23b74Copy full SHA for 3d23b74
llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
@@ -2838,8 +2838,12 @@ bool AArch64InstructionSelector::select(MachineInstr &I) {
2838
assert(OpFlags == AArch64II::MO_GOT);
2839
} else {
2840
GV = I.getOperand(1).getGlobal();
2841
- if (GV->isThreadLocal())
+ if (GV->isThreadLocal()) {
2842
+ // We don't support instructions with emulated TLS variables yet
2843
+ if (TM.useEmulatedTLS())
2844
+ return false;
2845
return selectTLSGlobalValue(I, MRI);
2846
+ }
2847
OpFlags = STI.ClassifyGlobalReference(GV, TM);
2848
}
2849
0 commit comments