[PATCH] D130056: [RISCV] Optimize (SRLI (SLLI GPR:$rs1, 32), 32)

Jessica Clarke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 18 19:31:03 PDT 2022


jrtc27 requested changes to this revision.
jrtc27 added a comment.
This revision now requires changes to proceed.

This is wrong. SRLI (SLLI) will zero-extend, but ADDIW will sign-extend.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D130056



More information about the llvm-commits mailing list