AntonBikineev wrote:

> Aligning the targets of branches is a different thing from what you've 
> implemented. There are basic blocks which are not branch targets, and there 
> are branch targets which are not at the beginning of a basic block. (Branch 
> targets that aren't at the beginning of a basic block are rare on most 
> targets, but it doesn't seem like something we should completely ignore.)

That makes sense, thanks. Would there be an interest in something like 
[[clang::x86_align_branch_boundary]] that would align branch instructions per 
function?

https://github.com/llvm/llvm-project/pull/80765
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to