stdlib: Do the needs-type-check check in the Array subscript immediately before it is needed.
stdlib: Do the needs-type-check check in the Array subscript immediately before it is needed.

This reduces the amount of basic blocks in the function.



Swift SVN r26590

OscarSwanros/swift,parkera/swift,ben-ng/swift,gribozavr/swift,gottesmm/swift,djwbrown/swift,johnno1962d/swift,gregomni/swift,gmilos/swift,amraboelela/swift,LeoShimonaka/swift,lorentey/swift,gribozavr/swift,gmilos/swift,emilstahl/swift,swiftix/swift,gmilos/swift,khizkhiz/swift,danielmartin/swift,KrishMunot/swift,Ivacker/swift,swiftix/swift,Jnosh/swift,brentdax/swift,devincoughlin/swift,LeoShimonaka/swift,airspeedswift/swift,gottesmm/swift,benlangmuir/swift,gregomni/swift,lorentey/swift,dreamsxin/swift,harlanhaskins/swift,lorentey/swift,natecook1000/swift,tkremenek/swift,allevato/swift,Jnosh/swift,hughbe/swift,danielmartin/swift,aschwaighofer/swift,arvedviehweger/swift,hooman/swift,amraboelela/swift,kstaring/swift,KrishMunot/swift,dduan/swift,Jnosh/swift,ben-ng/swift,parkera/swift,tinysun212/swift-windows,russbishop/swift,sdulal/swift,practicalswift/swift,slavapestov/swift,swiftix/swift.old,gregomni/swift,nathawes/swift,therealbnut/swift,LeoShimonaka/swift,tardieu/swift,frootloops/swift,benlangmuir/swift,nathawes/swift,JaSpa/swift,felix91gr/swift,gribozavr/swift,bitjammer/swift,mightydeveloper/swift,aschwaighofer/swift,modocache/swift,gribozavr/swift,mightydeveloper/swift,modocache/swift,MukeshKumarS/Swift,jopamer/swift,rudkx/swift,shajrawi/swift,xwu/swift,tkremenek/swift,tardieu/swift,LeoShimonaka/swift,emilstahl/swift,therealbnut/swift,arvedviehweger/swift,therealbnut/swift,jmgc/swift,ahoppen/swift,emilstahl/swift,hughbe/swift,khizkhiz/swift,sdulal/swift,huonw/swift,calebd/swift,Ivacker/swift,johnno1962d/swift,sdulal/swift,KrishMunot/swift,CodaFi/swift,stephentyrone/swift,austinzheng/swift,uasys/swift,alblue/swift,airspeedswift/swift,huonw/swift,OscarSwanros/swift,adrfer/swift,arvedviehweger/swift,russbishop/swift,rudkx/swift,nathawes/swift,kentya6/swift,practicalswift/swift,slavapestov/swift,austinzheng/swift,felix91gr/swift,jopamer/swift,ben-ng/swift,lorentey/swift,arvedviehweger/swift,cbrentharris/swift,karwa/swift,benlangmuir/swift,ahoppen/swift,gmilos/swift,alblue/swift,rudkx/swift,austinzheng/swift,jtbandes/swift,Ivacker/swift,modocache/swift,allevato/swift,jmgc/swift,glessard/swift,shahmishal/swift,jopamer/swift,jopamer/swift,ken0nek/swift,huonw/swift,tardieu/swift,jmgc/swift,JGiola/swift,kperryua/swift,alblue/swift,gregomni/swift,kusl/swift,bitjammer/swift,swiftix/swift.old,shajrawi/swift,zisko/swift,kstaring/swift,apple/swift,tkremenek/swift,johnno1962d/swift,adrfer/swift,huonw/swift,jmgc/swift,felix91gr/swift,karwa/swift,devincoughlin/swift,adrfer/swift,slavapestov/swift,practicalswift/swift,airspeedswift/swift,amraboelela/swift,tardieu/swift,IngmarStein/swift,airspeedswift/swift,khizkhiz/swift,gribozavr/swift,modocache/swift,kentya6/swift,practicalswift/swift,kstaring/swift,Jnosh/swift,milseman/swift,kusl/swift,gmilos/swift,shajrawi/swift,swiftix/swift.old,LeoShimonaka/swift,milseman/swift,zisko/swift,Jnosh/swift,jmgc/swift,zisko/swift,djwbrown/swift,airspeedswift/swift,khizkhiz/swift,hooman/swift,alblue/swift,cbrentharris/swift,tinysun212/swift-windows,apple/swift,brentdax/swift,lorentey/swift,kentya6/swift,natecook1000/swift,CodaFi/swift,frootloops/swift,atrick/swift,jtbandes/swift,alblue/swift,slavapestov/swift,xedin/swift,huonw/swift,shahmishal/swift,CodaFi/swift,benlangmuir/swift,devincoughlin/swift,devincoughlin/swift,gottesmm/swift,jmgc/swift,karwa/swift,felix91gr/swift,dduan/swift,gribozavr/swift,natecook1000/swift,jckarter/swift,arvedviehweger/swift,devincoughlin/swift,harlanhaskins/swift,codestergit/swift,uasys/swift,tinysun212/swift-windows,kentya6/swift,kstaring/swift,ahoppen/swift,felix91gr/swift,johnno1962d/swift,parkera/swift,tjw/swift,apple/swift,cbrentharris/swift,djwbrown/swift,roambotics/swift,slavapestov/swift,kentya6/swift,swiftix/swift.old,tjw/swift,jtbandes/swift,milseman/swift,allevato/swift,kusl/swift,Ivacker/swift,jckarter/swift,xedin/swift,SwiftAndroid/swift,kperryua/swift,stephentyrone/swift,stephentyrone/swift,aschwaighofer/swift,kperryua/swift,manavgabhawala/swift,austinzheng/swift,calebd/swift,codestergit/swift,dduan/swift,OscarSwanros/swift,calebd/swift,MukeshKumarS/Swift,Ivacker/swift,amraboelela/swift,glessard/swift,parkera/swift,swiftix/swift.old,roambotics/swift,CodaFi/swift,alblue/swift,MukeshKumarS/Swift,return/swift,KrishMunot/swift,lorentey/swift,brentdax/swift,brentdax/swift,ken0nek/swift,tkremenek/swift,ken0nek/swift,benlangmuir/swift,sdulal/swift,kusl/swift,mightydeveloper/swift,mightydeveloper/swift,kusl/swift,tardieu/swift,shajrawi/swift,atrick/swift,lorentey/swift,glessard/swift,ben-ng/swift,jmgc/swift,IngmarStein/swift,kperryua/swift,jopamer/swift,manavgabhawala/swift,ben-ng/swift,kusl/swift,shahmishal/swift,ahoppen/swift,kusl/swift,jckarter/swift,return/swift,stephentyrone/swift,MukeshKumarS/Swift,rudkx/swift,milseman/swift,mightydeveloper/swift,calebd/swift,russbishop/swift,devincoughlin/swift,LeoShimonaka/swift,glessard/swift,uasys/swift,harlanhaskins/swift,devincoughlin/swift,tjw/swift,atrick/swift,shahmishal/swift,tardieu/swift,jopamer/swift,kperryua/swift,KrishMunot/swift,CodaFi/swift,hughbe/swift,johnno1962d/swift,sschiau/swift,jckarter/swift,parkera/swift,practicalswift/swift,KrishMunot/swift,hughbe/swift,JGiola/swift,JaSpa/swift,karwa/swift,benlangmuir/swift,frootloops/swift,swiftix/swift.old,hughbe/swift,kstaring/swift,harlanhaskins/swift,milseman/swift,sschiau/swift,IngmarStein/swift,tinysun212/swift-windows,gmilos/swift,aschwaighofer/swift,tjw/swift,bitjammer/swift,swiftix/swift,roambotics/swift,karwa/swift,JaSpa/swift,practicalswift/swift,hughbe/swift,jtbandes/swift,danielmartin/swift,frootloops/swift,aschwaighofer/swift,kperryua/swift,adrfer/swift,xedin/swift,natecook1000/swift,hooman/swift,djwbrown/swift,JaSpa/swift,xedin/swift,danielmartin/swift,jckarter/swift,therealbnut/swift,parkera/swift,gottesmm/swift,tjw/swift,calebd/swift,brentdax/swift,russbishop/swift,deyton/swift,bitjammer/swift,kstaring/swift,JaSpa/swift,OscarSwanros/swift,mightydeveloper/swift,xwu/swift,sdulal/swift,shajrawi/swift,MukeshKumarS/Swift,shajrawi/swift,ahoppen/swift,nathawes/swift,frootloops/swift,brentdax/swift,practicalswift/swift,ken0nek/swift,tinysun212/swift-windows,swiftix/swift.old,swiftix/swift,modocache/swift,cbrentharris/swift,MukeshKumarS/Swift,manavgabhawala/swift,parkera/swift,bitjammer/swift,atrick/swift,SwiftAndroid/swift,xedin/swift,jtbandes/swift,apple/swift,xedin/swift,xwu/swift,aschwaighofer/swift,felix91gr/swift,glessard/swift,austinzheng/swift,stephentyrone/swift,hooman/swift,amraboelela/swift,karwa/swift,xwu/swift,LeoShimonaka/swift,deyton/swift,tkremenek/swift,manavgabhawala/swift,allevato/swift,return/swift,Ivacker/swift,kentya6/swift,khizkhiz/swift,CodaFi/swift,dduan/swift,ken0nek/swift,adrfer/swift,felix91gr/swift,Jnosh/swift,xedin/swift,dduan/swift,gribozavr/swift,JaSpa/swift,natecook1000/swift,devincoughlin/swift,hughbe/swift,amraboelela/swift,tinysun212/swift-windows,aschwaighofer/swift,practicalswift/swift,slavapestov/swift,ken0nek/swift,IngmarStein/swift,shahmishal/swift,tkremenek/swift,shajrawi/swift,JGiola/swift,therealbnut/swift,bitjammer/swift,emilstahl/swift,dreamsxin/swift,xwu/swift,kentya6/swift,roambotics/swift,sschiau/swift,jckarter/swift,nathawes/swift,stephentyrone/swift,frootloops/swift,deyton/swift,deyton/swift,danielmartin/swift,khizkhiz/swift,uasys/swift,modocache/swift,uasys/swift,jtbandes/swift,swiftix/swift,karwa/swift,alblue/swift,russbishop/swift,OscarSwanros/swift,tinysun212/swift-windows,sschiau/swift,shahmishal/swift,sschiau/swift,emilstahl/swift,KrishMunot/swift,uasys/swift,return/swift,ahoppen/swift,gribozavr/swift,allevato/swift,deyton/swift,apple/swift,OscarSwanros/swift,Ivacker/swift,xwu/swift,codestergit/swift,roambotics/swift,harlanhaskins/swift,nathawes/swift,zisko/swift,Ivacker/swift,mightydeveloper/swift,sdulal/swift,karwa/swift,codestergit/swift,shajrawi/swift,therealbnut/swift,lorentey/swift,manavgabhawala/swift,CodaFi/swift,calebd/swift,SwiftAndroid/swift,brentdax/swift,calebd/swift,harlanhaskins/swift,hooman/swift,return/swift,JGiola/swift,emilstahl/swift,codestergit/swift,djwbrown/swift,nathawes/swift,allevato/swift,JaSpa/swift,tardieu/swift,cbrentharris/swift,cbrentharris/swift,austinzheng/swift,tjw/swift,djwbrown/swift,gregomni/swift,return/swift,arvedviehweger/swift,gmilos/swift,manavgabhawala/swift,natecook1000/swift,gottesmm/swift,milseman/swift,codestergit/swift,deyton/swift,emilstahl/swift,russbishop/swift,SwiftAndroid/swift,huonw/swift,frootloops/swift,zisko/swift,roambotics/swift,harlanhaskins/swift,IngmarStein/swift,SwiftAndroid/swift,sschiau/swift,codestergit/swift,sschiau/swift,austinzheng/swift,adrfer/swift,parkera/swift,ben-ng/swift,cbrentharris/swift,arvedviehweger/swift,swiftix/swift.old,Jnosh/swift,mightydeveloper/swift,jtbandes/swift,airspeedswift/swift,shahmishal/swift,natecook1000/swift,johnno1962d/swift,OscarSwanros/swift,allevato/swift,bitjammer/swift,return/swift,kstaring/swift,danielmartin/swift,LeoShimonaka/swift,zisko/swift,djwbrown/swift,emilstahl/swift,ben-ng/swift,apple/swift,russbishop/swift,uasys/swift,SwiftAndroid/swift,stephentyrone/swift,hooman/swift,ken0nek/swift,atrick/swift,IngmarStein/swift,JGiola/swift,manavgabhawala/swift,rudkx/swift,adrfer/swift,slavapestov/swift,sdulal/swift,atrick/swift,gregomni/swift,dduan/swift,huonw/swift,milseman/swift,therealbnut/swift,dduan/swift,kusl/swift,tjw/swift,johnno1962d/swift,amraboelela/swift,sschiau/swift,JGiola/swift,MukeshKumarS/Swift,kentya6/swift,jckarter/swift,kperryua/swift,rudkx/swift,gottesmm/swift,airspeedswift/swift,xwu/swift,gottesmm/swift,SwiftAndroid/swift,sdulal/swift,xedin/swift,tkremenek/swift,deyton/swift,swiftix/swift,danielmartin/swift,glessard/swift,IngmarStein/swift,jopamer/swift,cbrentharris/swift,modocache/swift,swiftix/swift,hooman/swift,zisko/swift,khizkhiz/swift,shahmishal/swift