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

Harrison Hao via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 18 03:56:19 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 {
----------------
harrisonGPU wrote:

Done.

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


More information about the llvm-commits mailing list