Was it an early one? Those from 97 to 2003 used that crappy 3.1L engine. The GM 3.8L engine is a great engine. The 3.1L was in the Buick, and so was the 3.8L.
I think you met a 3.1L engine variant, or even the 4 cylinder version. Both were crappy engines.