Reorder how max thread count is computed
Reorder how max thread count is computed

This simplifies better, and prevents over-conservative bounds.
dougkwan/Halide,mcanthony/Halide,fengzhyuan/Halide,mcanthony/Halide,dan-tull/Halide,kgnk/Halide,kenkuang1213/Halide,dougkwan/Halide,lglucin/Halide,dougkwan/Halide,ayanazmat/Halide,damienfir/Halide,aam/Halide,delcypher/Halide,delcypher/Halide,fengzhyuan/Halide,adasworks/Halide,myrtleTree33/Halide,tdenniston/Halide,adasworks/Halide,damienfir/Halide,ronen/Halide,adasworks/Halide,mcanthony/Halide,dougkwan/Halide,damienfir/Halide,psuriana/Halide,aam/Halide,jiawen/Halide,tdenniston/Halide,adasworks/Halide,tdenniston/Halide,kenkuang1213/Halide,ronen/Halide,jiawen/Halide,rodrigob/Halide,smxlong/Halide,rodrigob/Halide,ronen/Halide,jiawen/Halide,gchauras/Halide,fengzhyuan/Halide,tdenniston/Halide,ronen/Halide,mcanthony/Halide,dougkwan/Halide,kgnk/Halide,kenkuang1213/Halide,gchauras/Halide,fengzhyuan/Halide,psuriana/Halide,kenkuang1213/Halide,myrtleTree33/Halide,dougkwan/Halide,delcypher/Halide,myrtleTree33/Halide,lglucin/Halide,adasworks/Halide,myrtleTree33/Halide,ronen/Halide,kgnk/Halide,ayanazmat/Halide,tdenniston/Halide,myrtleTree33/Halide,delcypher/Halide,smxlong/Halide,smxlong/Halide,lglucin/Halide,rodrigob/Halide,dan-tull/Halide,aam/Halide,lglucin/Halide,ayanazmat/Halide,damienfir/Halide,rodrigob/Halide,myrtleTree33/Halide,rodrigob/Halide,fengzhyuan/Halide,rodrigob/Halide,delcypher/Halide,lglucin/Halide,smxlong/Halide,myrtleTree33/Halide,ronen/Halide,dougkwan/Halide,kgnk/Halide,aam/Halide,dan-tull/Halide,mcanthony/Halide,aam/Halide,dan-tull/Halide,damienfir/Halide,fengzhyuan/Halide,mcanthony/Halide,delcypher/Halide,damienfir/Halide,damienfir/Halide,gchauras/Halide,tdenniston/Halide,gchauras/Halide,ronen/Halide,kenkuang1213/Halide,gchauras/Halide,ayanazmat/Halide,smxlong/Halide,ayanazmat/Halide,damienfir/Halide,psuriana/Halide,ayanazmat/Halide,kgnk/Halide,fengzhyuan/Halide,aam/Halide,kgnk/Halide,kenkuang1213/Halide,psuriana/Halide,psuriana/Halide,adasworks/Halide,tdenniston/Halide,mcanthony/Halide,adasworks/Halide,smxlong/Halide,dougkwan/Halide,kgnk/Halide,ronen/Halide,delcypher/Halide,lglucin/Halide,dan-tull/Halide,lglucin/Halide,smxlong/Halide,myrtleTree33/Halide,jiawen/Halide,rodrigob/Halide,kenkuang1213/Halide,psuriana/Halide,ayanazmat/Halide,dan-tull/Halide,aam/Halide,kgnk/Halide,jiawen/Halide,jiawen/Halide,delcypher/Halide,rodrigob/Halide,dan-tull/Halide,smxlong/Halide,kenkuang1213/Halide,gchauras/Halide,fengzhyuan/Halide,adasworks/Halide,dan-tull/Halide,mcanthony/Halide,jiawen/Halide,psuriana/Halide,ayanazmat/Halide,tdenniston/Halide