================
@@ -182,6 +182,11 @@ class X86RegisterInfo final : public X86GenRegisterInfo {
bool requiresRegisterScavenging(const MachineFunction &MF) const override {
return true;
}
+
+ unsigned getCSRFirstUseCost() const override {
+ // push + pop.
+ return 2;
----------------
phoebewang wrote:
With PPX, push/pop won't go through memory. We should exclude for it.
https://github.com/llvm/llvm-project/pull/188609
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits