Instead software patents seem to be mostly used to sue people who independently invented the same thing. They enable rent-seeking and provide no educational value to spread innovation. (Which naturally arises and spreads in our industry on a time scale that is too short to get patents assigned.)
How do I know this? Because the one has happened based on my work, and the other came close to happening. At one of my employers, a rogue employee cloned the code base and then took it to some Eastern European programmers to reimplement the website. It was litigated based on copyright and trade secrets - no patents were available for that lawsuit.
However a different employer of mine took out two patents based something I did when I was there. Since then a number of companies have infringed on those patents, and could be sued for large sums. By luck the patents have wound up owned by an organization that is unlikely to ever let them go to a patent troll. But I've spent years fearing that that work will get used to stifle independent innovation.