[llvm] [LoongArch] Optimize conditional branches (PR #147885)

Lu Weining via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 16 23:54:41 PDT 2025


================
@@ -22,6 +25,7 @@ def SDT_LoongArchFTINT : SDTypeProfile<1, 1, [SDTCisFP<0>, SDTCisFP<1>]>;
 def SDT_LoongArchFRECIPE : SDTypeProfile<1, 1, [SDTCisFP<0>, SDTCisFP<1>]>;
 def SDT_LoongArchFRSQRTE : SDTypeProfile<1, 1, [SDTCisFP<0>, SDTCisFP<1>]>;
 
+def loongarch_brcond : SDNode<"LoongArchISD::BRCOND", SDTBrcond, [SDNPHasChain]>;
----------------
SixWeining wrote:

I see. It's better to add these comments in code.

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


More information about the llvm-commits mailing list