Also fix bug in vector legalization for bitreverse.
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/Target/AMDGPU/AMDGPUISelLowering.cpp | ||
---|---|---|
1039–1041 | We have to keep this intrinsic, because we are using it in Mesa. |
Comment Actions
Actually the AArch64 bitreverse test is broken from the legalization fix. It looks like it now gets scalarized and then fully expanded instead of the expansion with vector ops.
Comment Actions
Fix ARM test failures. If the required vector bit instruction are available, defer legalization to LegalizeDAG.
Comment Actions
At Matt's request I looked at this; it looks fine to me. I'm glad the AArch64 bitreverse test correctly caught the poor expansion!
We have to keep this intrinsic, because we are using it in Mesa.