I think in a dog (or horse) that's bloated once, it's more likely to reoccur. For that reason tacking can be helpful even if the stomach has not twisted.
The technical name for tacking is a gastropexy. The stomach is stitched to the abdominal wall to prevent it from being able to twist. However the stitches can come loose, so it is not a cure-all.
Some vets are reluctant to do the surgery as they feel it interferes with the natural function of the stomach. Our old practice had two vets; the lady vet recommended it, when I dropped her off the male vet was performing the surgery and he tried to talk me out of it. We live so far from town though that he agreed in our case it made sense to have the surgery done. Every minute counts with bloat, and it would be an hour until treatment even if we caught it and left the house the instant it happened.
Several members of our SAR group have lost dogs to bloat, mainly due to their breed of choice (GSD, Dobermann, Bloodhound). As a result, everyone now has the gastropexy done when spaying or neutering.
It is quite a major surgery, we had it done when Penny was spayed and I hadn't realised how big the incision would be. She looked like a sock monkey. That may have been due to our incompetent ex-vet though. I felt bad at the time, but it really was worth it if it gave even the slightest chance of preventing torsion. She recovered fine from the surgery, and you wouldn't know she'd had it done.