-
Notifications
You must be signed in to change notification settings - Fork 14.9k
SystemZ: Remove override of insertSSPDeclarations #163708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
SystemZ: Remove override of insertSSPDeclarations #163708
Conversation
The runtime library does not add a SYSTEM_CHECK_GUARD implementation so the default will be a no-op anyway.
@llvm/pr-subscribers-backend-systemz Author: Matt Arsenault (arsenm) ChangesThe runtime library does not add a SYSTEM_CHECK_GUARD Full diff: https://github.com/llvm/llvm-project/pull/163708.diff 1 Files Affected:
diff --git a/llvm/lib/Target/SystemZ/SystemZISelLowering.h b/llvm/lib/Target/SystemZ/SystemZISelLowering.h
index d5b76031766dd..396e78e2845be 100644
--- a/llvm/lib/Target/SystemZ/SystemZISelLowering.h
+++ b/llvm/lib/Target/SystemZ/SystemZISelLowering.h
@@ -606,8 +606,6 @@ class SystemZTargetLowering : public TargetLowering {
/// Override to support customized stack guard loading.
bool useLoadStackGuardNode(const Module &M) const override { return true; }
- void insertSSPDeclarations(Module &M) const override {
- }
MachineBasicBlock *
EmitInstrWithCustomInserter(MachineInstr &MI,
|
This doesn't look correct to me. Linux on SystemZ uses the Now maybe we should have our own settings instead, but right now we do not. (Note that z/OS does have it's own settings, but z/OS is a very different operating system from Linux anyway.) |
Since no tests change with this, there is a problem. Can you add the missing test coverage @uweigand? |
Well, there is a (somewhat minimalistic) test in You can see differences in verbose dumps, e.g. current mainline:
vs. with your patch:
Not sure if there is any more complex code sequence where that could result in observable assembler differences. Either way, it looks to me like current mainline (without the declaration) is more correct as we do not actually use any global variable |
The runtime library does not add a SYSTEM_CHECK_GUARD
implementation so the default will be a no-op anyway.