[llvm-dev] Getting a BasicBlock address

Krzysztof Parzyszek via llvm-dev llvm-dev at lists.llvm.org
Wed Dec 5 11:19:05 PST 2018

On 12/5/2018 1:06 PM, Krzysztof Parzyszek via llvm-dev wrote:
> On 12/5/2018 9:14 AM, David Greene via llvm-dev wrote:
>> In particular, what happens if the BasicBlock is optimized
>> away (merged with another block, etc.)?
> Taking a block's address is equivalent to taking the address of the 
> label that starts it. When a block is marked as "address-taken" the 
> label sticks around even after the block itself has been removed.

Checked the source---apparently blockaddress does get replaced with 1 
when a block is deleted.


Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation

More information about the llvm-dev mailing list