[llvm] [BOLT] Compare and Jump (CmpJE and CmpJNE) generation in MCPlusBuilder for both X86 and AArch64. (PR #131949)
    Rodrigo Rocha via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Mar 24 13:36:32 PDT 2025
    
    
  
================
@@ -1321,17 +1321,49 @@ class AArch64MCPlusBuilder : public MCPlusBuilder {
 
   int getUncondBranchEncodingSize() const override { return 28; }
 
+  // This helper function creates the snippet of code
+  // that compares a register RegNo with an immedaite Imm,
+  // and jumps to Target if they are equal.
+  // cmp RegNo, #Imm
+  // b.eq Target
+  // where cmp is an for subs, which results in the code below:
----------------
rcorcs wrote:
I will fix this.
https://github.com/llvm/llvm-project/pull/131949
    
    
More information about the llvm-commits
mailing list