[PATCH] D49483: [AMDGPU] Optimize _L image intrinsic to _LZ when lod is zero
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 18 07:45:33 PDT 2018
arsenm added inline comments.
================
Comment at: lib/Target/AMDGPU/SIISelLowering.cpp:4588
+ if (auto ConstantLod = dyn_cast<ConstantFPSDNode>(VAddrs[NumVAddrs-1].getNode())) {
+ if (ConstantLod->isZero()) {
+ IntrOpcode = LZMappingInfo->LZ; // set new opcode to _lz variant of _l
----------------
Does this need to check that it is positive zero?
Repository:
rL LLVM
https://reviews.llvm.org/D49483
More information about the llvm-commits
mailing list