@@ -359,11 +359,6 @@ class SICacheControl {
359359
360360 // / Virtual destructor to allow derivations to be deleted.
361361 virtual ~SICacheControl () = default ;
362-
363- virtual bool tryForceStoreSC0SC1 (const SIMemOpInfo &MOI,
364- MachineBasicBlock::iterator &MI) const {
365- return false ;
366- }
367362};
368363
369364class SIGfx6CacheControl : public SICacheControl {
@@ -517,20 +512,6 @@ class SIGfx940CacheControl : public SIGfx90ACacheControl {
517512 bool insertRelease (MachineBasicBlock::iterator &MI, SIAtomicScope Scope,
518513 SIAtomicAddrSpace AddrSpace, bool IsCrossAddrSpaceOrdering,
519514 Position Pos) const override ;
520-
521- bool tryForceStoreSC0SC1 (const SIMemOpInfo &MOI,
522- MachineBasicBlock::iterator &MI) const override {
523- bool Changed = false ;
524- if (ST.hasForceStoreSC0SC1 () &&
525- (MOI.getInstrAddrSpace () & (SIAtomicAddrSpace::SCRATCH |
526- SIAtomicAddrSpace::GLOBAL |
527- SIAtomicAddrSpace::OTHER)) !=
528- SIAtomicAddrSpace::NONE) {
529- Changed |= enableSC0Bit (MI);
530- Changed |= enableSC1Bit (MI);
531- }
532- return Changed;
533- }
534515};
535516
536517class SIGfx10CacheControl : public SIGfx7CacheControl {
@@ -2820,7 +2801,6 @@ bool SIMemoryLegalizer::runOnMachineFunction(MachineFunction &MF) {
28202801 Changed |= expandLoad (*MOI, MI);
28212802 else if (const auto &MOI = MOA.getStoreInfo (MI)) {
28222803 Changed |= expandStore (*MOI, MI);
2823- Changed |= CC->tryForceStoreSC0SC1 (*MOI, MI);
28242804 } else if (const auto &MOI = MOA.getAtomicFenceInfo (MI))
28252805 Changed |= expandAtomicFence (*MOI, MI);
28262806 else if (const auto &MOI = MOA.getAtomicCmpxchgOrRmwInfo (MI))
0 commit comments