Details
Details
- Reviewers
arsenm rampitec - Commits
- rG3ad5216ed88e: [AMDGPU] Better codegen for i64 bitreverse
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp | ||
---|---|---|
5746 | I don't see how you can just replace this with the two reversed halves. That would give you abcd -> badc instead of dcba |
Comment Actions
GlobalISel already looks good in test/CodeGen/AMDGPU/GlobalISel/legalize-bitreverse.mir.
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp | ||
---|---|---|
5746 | That's why I set Swap = true, to also swap the two halves. |
I don't see how you can just replace this with the two reversed halves. That would give you abcd -> badc instead of dcba