[llvm] [AMDGPU] Remove unnecessary add instructions in ctlz.i8 (PR #77615)

Leon Clark via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 15 09:02:07 PST 2024


================
@@ -3062,6 +3071,26 @@ static bool isCttzOpc(unsigned Opc) {
   return Opc == ISD::CTTZ || Opc == ISD::CTTZ_ZERO_UNDEF;
 }
 
+SDValue AMDGPUTargetLowering::lowerCTLZResults(SDValue Op,
----------------
PeddleSpam wrote:

I'm happy to change the name if there are no objections? I think "lowerX" was preferred for consistency with the other functions in `ReplaceNodeResults`.

https://github.com/llvm/llvm-project/pull/77615


More information about the llvm-commits mailing list