[PATCH] D130809: [RISCV] Explicitly select second operand of branch condition to X0.

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 1 08:20:52 PDT 2022


reames added a comment.

LGTM as well.  I think this is worth taking, but as noted, I think we may have more oddities to dig into here.



================
Comment at: llvm/test/CodeGen/RISCV/fpclamptosat.ll:3493
 ; RV32IFD-NEXT:    lw a3, 16(sp)
 ; RV32IFD-NEXT:    li a1, 0
 ; RV32IFD-NEXT:    beqz a0, .LBB46_3
----------------
I think there's still a problem with this code.  This initialization of a1 appears to never be clobbered, and yet we have multiple register copies below instead of zero initialization.  It's less immediate problematic than the branch interaction, but something odd is still going on here.  


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130809/new/

https://reviews.llvm.org/D130809



More information about the llvm-commits mailing list