Add a test for devirtualizing in the inliner.
Add a test for devirtualizing in the inliner.

This is a test that should have gone in with r26728.

I need to do some hacking on sil-opt before I can add a similar test for
classes, as it currently does not support passing the
-whole-module-optimization option in, which would be useful for testing
devirtualization of a method in an internal class.

Swift SVN r26735

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