This is not NFC as MCAsmStreamer will now output alignment unconditionnally.
All tests are passing so it seems like this is acceptable.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
Looking deeper, it used to be that alignment should be output only if greater than one.
Relevant commit : https://github.com/llvm/llvm-project/commit/6a715dccdf596d39d2b480beac48385f1fa73219#diff-d6520fbf2b954c8679d0835ca53c6ae423b4354e5e517dcfb043446042249f98
It used to be "output alignment if Log2(alignment) != 0" but got turned into "output alignment if alignment != 0" by mistake.
The change modified both EmitZerofill and EmitCommonSymbol.
So this can be made NFC if we revert the behavior to what it was 13 years ago 😁