If you don't have anything wider than 50mm, I'd recommend the Tamron 17-50 f/2.8 over the Sigma 24-70 DG EX Macro (i.e. non-HSM model).
The Sigma will still be a faster focusing lens than the Tamron, but the difference between 17 and 24mm is quite substantial and on a 40D, this would be the deciding factor for me.
I recently was in the same shoes finding a normal zoom to pair to my 70-200 f/4L IS, and was considering the 24-70 DG EX HSM (because I liked it better than the 24-70 f/2.8L USM) and the EF-S 17-55 f/2.8 IS USM and the Tamron 17-50 f/2.8. For me, the slower focusing of the Tamron made me go for the Canon EF-S 17-55 f/2.8 IS USM (the IS was a big added bonus, but of course the price was a lot higher too). I don't consider the gap from 55mm to 70mm as much of an issue as the gap I would have had from 16mm to 24mm (which is much more prime FL real estate, at least for me).