[dead-function-elimination] Do not consider transparent functions as anchors
[dead-function-elimination] Do not consider transparent functions as anchors

Transparent functions are emitted into the client in most cases, so there is no need to keep them alive in the defining module unless they are used there.

The only exception are transparent global initializers, because bodies of global initializer functions are never SIL serialized and are always IRGened into the defining module, so that clients can invoke them

This change results in small code size reductions of the binaries being produced after recent changes related to the early SIL serialization and the removal of -sil-serialize-all mode.

Fixes rdar://problem/35022861

sschiau/swift,karwa/swift,harlanhaskins/swift,frootloops/swift,natecook1000/swift,atrick/swift,jckarter/swift,shajrawi/swift,jopamer/swift,lorentey/swift,airspeedswift/swift,tjw/swift,atrick/swift,apple/swift,shahmishal/swift,jopamer/swift,zisko/swift,airspeedswift/swift,JGiola/swift,parkera/swift,JGiola/swift,jmgc/swift,danielmartin/swift,huonw/swift,tkremenek/swift,aschwaighofer/swift,xwu/swift,sschiau/swift,shajrawi/swift,practicalswift/swift,allevato/swift,amraboelela/swift,alblue/swift,practicalswift/swift,CodaFi/swift,frootloops/swift,tjw/swift,gribozavr/swift,jckarter/swift,rudkx/swift,sschiau/swift,apple/swift,danielmartin/swift,shahmishal/swift,jopamer/swift,xedin/swift,amraboelela/swift,gregomni/swift,frootloops/swift,aschwaighofer/swift,parkera/swift,shahmishal/swift,natecook1000/swift,huonw/swift,JGiola/swift,brentdax/swift,harlanhaskins/swift,alblue/swift,allevato/swift,shajrawi/swift,gribozavr/swift,harlanhaskins/swift,ahoppen/swift,lorentey/swift,allevato/swift,lorentey/swift,huonw/swift,danielmartin/swift,glessard/swift,karwa/swift,sschiau/swift,rudkx/swift,hooman/swift,JGiola/swift,brentdax/swift,jmgc/swift,parkera/swift,ahoppen/swift,stephentyrone/swift,karwa/swift,huonw/swift,rudkx/swift,lorentey/swift,danielmartin/swift,xedin/swift,airspeedswift/swift,gregomni/swift,xwu/swift,frootloops/swift,practicalswift/swift,tkremenek/swift,glessard/swift,atrick/swift,austinzheng/swift,danielmartin/swift,zisko/swift,shajrawi/swift,tkremenek/swift,xwu/swift,parkera/swift,harlanhaskins/swift,parkera/swift,tkremenek/swift,practicalswift/swift,shajrawi/swift,lorentey/swift,devincoughlin/swift,karwa/swift,nathawes/swift,ahoppen/swift,brentdax/swift,practicalswift/swift,zisko/swift,hooman/swift,karwa/swift,natecook1000/swift,gregomni/swift,roambotics/swift,sschiau/swift,alblue/swift,huonw/swift,airspeedswift/swift,roambotics/swift,austinzheng/swift,airspeedswift/swift,aschwaighofer/swift,austinzheng/swift,natecook1000/swift,CodaFi/swift,shajrawi/swift,tkremenek/swift,lorentey/swift,benlangmuir/swift,danielmartin/swift,benlangmuir/swift,glessard/swift,xwu/swift,atrick/swift,gregomni/swift,roambotics/swift,JGiola/swift,sschiau/swift,roambotics/swift,xedin/swift,natecook1000/swift,aschwaighofer/swift,nathawes/swift,nathawes/swift,atrick/swift,practicalswift/swift,xedin/swift,tjw/swift,stephentyrone/swift,jckarter/swift,gregomni/swift,gribozavr/swift,JGiola/swift,harlanhaskins/swift,jmgc/swift,shahmishal/swift,shahmishal/swift,apple/swift,aschwaighofer/swift,rudkx/swift,sschiau/swift,aschwaighofer/swift,natecook1000/swift,hooman/swift,CodaFi/swift,devincoughlin/swift,gribozavr/swift,amraboelela/swift,xedin/swift,jckarter/swift,alblue/swift,jmgc/swift,devincoughlin/swift,roambotics/swift,rudkx/swift,zisko/swift,apple/swift,xwu/swift,stephentyrone/swift,jopamer/swift,stephentyrone/swift,CodaFi/swift,xwu/swift,ahoppen/swift,glessard/swift,zisko/swift,ahoppen/swift,practicalswift/swift,hooman/swift,practicalswift/swift,shahmishal/swift,austinzheng/swift,lorentey/swift,zisko/swift,benlangmuir/swift,tkremenek/swift,shahmishal/swift,allevato/swift,danielmartin/swift,tjw/swift,gribozavr/swift,hooman/swift,frootloops/swift,devincoughlin/swift,amraboelela/swift,allevato/swift,atrick/swift,brentdax/swift,roambotics/swift,apple/swift,tjw/swift,gribozavr/swift,gregomni/swift,harlanhaskins/swift,devincoughlin/swift,nathawes/swift,karwa/swift,apple/swift,devincoughlin/swift,amraboelela/swift,tjw/swift,alblue/swift,nathawes/swift,brentdax/swift,natecook1000/swift,ahoppen/swift,hooman/swift,stephentyrone/swift,amraboelela/swift,tkremenek/swift,shahmishal/swift,harlanhaskins/swift,xedin/swift,alblue/swift,zisko/swift,nathawes/swift,jopamer/swift,jckarter/swift,huonw/swift,jmgc/swift,rudkx/swift,glessard/swift,amraboelela/swift,parkera/swift,shajrawi/swift,CodaFi/swift,frootloops/swift,benlangmuir/swift,CodaFi/swift,austinzheng/swift,karwa/swift,jckarter/swift,parkera/swift,airspeedswift/swift,jckarter/swift,brentdax/swift,devincoughlin/swift,sschiau/swift,xwu/swift,austinzheng/swift,karwa/swift,jopamer/swift,CodaFi/swift,aschwaighofer/swift,austinzheng/swift,stephentyrone/swift,jmgc/swift,benlangmuir/swift,brentdax/swift,huonw/swift,jopamer/swift,stephentyrone/swift,airspeedswift/swift,xedin/swift,allevato/swift,benlangmuir/swift,shajrawi/swift,gribozavr/swift,parkera/swift,alblue/swift,allevato/swift,devincoughlin/swift,hooman/swift,tjw/swift,frootloops/swift,glessard/swift,gribozavr/swift,nathawes/swift,jmgc/swift,xedin/swift,lorentey/swift