[PATCH] D105347: [AMDGPU][GlobalISel] Legalization of G_ROTL and G_ROTR
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 28 09:09:14 PDT 2021
foad added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp:2765
+ if (isPowerOf2_64(DstTy.getScalarSizeInBits()))
+ Src1 = B.buildFNeg(DstTy, Src1).getReg(0);
+ else
----------------
buildFNeg is only for floating point. You need buildNeg, which does not exist yet, but you could implement it.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105347/new/
https://reviews.llvm.org/D105347
More information about the llvm-commits
mailing list