[llvm] [AMDGPU] Implement hasBitTest to Optimize Bit Testing Operations (PR #112652)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 16 21:24:53 PDT 2024


================
@@ -6043,3 +6043,24 @@ bool AMDGPUTargetLowering::isReassocProfitable(MachineRegisterInfo &MRI,
                                                Register N0, Register N1) const {
   return MRI.hasOneNonDBGUse(N0); // FIXME: handle regbanks
 }
+
+bool AMDGPUTargetLowering::hasBitTest(SDValue X, SDValue Y) const {
----------------
arsenm wrote:

Move to SIISelLowering 

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


More information about the llvm-commits mailing list