[PATCH] D154919: [LoongArch] Implement isSExtCheaperThanZExt
hev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 10 22:43:17 PDT 2023
hev added inline comments.
================
Comment at: llvm/test/CodeGen/LoongArch/ir-instruction/br.ll:29-30
; LA64: # %bb.0:
-; LA64-NEXT: ld.wu $a2, $a1, 0
-; LA64-NEXT: bstrpick.d $a0, $a0, 31, 0
+; LA64-NEXT: ld.w $a2, $a1, 0
+; LA64-NEXT: addi.w $a0, $a0, 0
; LA64-NEXT: beq $a2, $a0, .LBB1_2
----------------
Future patches will utilize the W instruction, thereby eliminating unnecessary sign extensions.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154919/new/
https://reviews.llvm.org/D154919
More information about the llvm-commits
mailing list