w2yehia

Results comments of w2yehia

/branch w2yehia/llvm-project/wyehia/llvm-17

https://github.com/llvm/llvm-project/pull/66805 posted

/cherry-pick da55b1b52fbce80093eee8dd4185df4861a44ba5

@tstellar since you mention you'll bisect, i'll wait for the results then investigate on our end. Yesterday I was able to reproduce the problem using the original instructions: ``` $...

I was able to reproduce without LTO and narrow down to the SLPVectorizerPass with the following options: ``` fail: -mllvm -slp-max-vf=4 -mllvm -slp-threshold=11 -mllvm -opt-bisect-limit=$BL # didn't put the actual...

[pass.func.ll.txt](https://github.com/user-attachments/files/20781961/pass.func.ll.txt) [fail.func.ll.txt](https://github.com/user-attachments/files/20781960/fail.func.ll.txt) Sure, here's the pass/fail IRs for function `_ZNK3hwy8N_EMU1286Pack16ILm3EE6UnpackINS0_4SimdItLm2ELi0EEEEEvT_PKtPt`

I narrowed down the issue to a wrong mask constant, and the issue seems to be during IR to Machine IR lowering. Specifically, I think this IR ``` %3 =...

@redstar pointed out that a potential fix is in `XCOFFWriter::recordRelocation` where we can order the relocations before generating the relocation table, or change FixupOffsetInCsect to be the address of the...