[PATCH] D82652: AMDGPU/GlobalISel: Select icmp intrinsic
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 26 07:37:23 PDT 2020
foad added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp:1019-1020
+
+ assert(MRI->getType(Dst).getSizeInBits() == STI.getWavefrontSize() &&
+ "Result size should match WavefrontSize");
+
----------------
arsenm wrote:
> Should fail to select rather than assert
I suggested this assert, based on my interpretation of your [[ https://reviews.llvm.org/D65088?id=211078#inline-582680 | comment ]] that there was no need to try to handle misuse of the intrinsics because they should really be checked by some kind of IR verification.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82652/new/
https://reviews.llvm.org/D82652
More information about the llvm-commits
mailing list