[llvm] [LoongArch][ISel] Check the number of sign bits in `PatGprGpr_32` (PR #107432)

Lu Weining via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 5 18:10:48 PDT 2024


================
@@ -189,8 +189,6 @@ define signext i32 @sdiv_si32_ui32_ui32(i32 %a, i32 %b) {
 ;
 ; LA64-LABEL: sdiv_si32_ui32_ui32:
 ; LA64:       # %bb.0: # %entry
-; LA64-NEXT:    addi.w $a1, $a1, 0
----------------
SixWeining wrote:

These two instructions should not be removed because the inputs are not guaranteed to be sign extended.  

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


More information about the llvm-commits mailing list