[all-commits] [llvm/llvm-project] 53e89f: [RISCV] Add bounds check before use on returned it...

Anmol P. Paralkar via All-commits all-commits at lists.llvm.org
Mon Aug 14 16:10:40 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 53e89f5e3f2cefa432f7262343654c2a582dcbe1
      https://github.com/llvm/llvm-project/commit/53e89f5e3f2cefa432f7262343654c2a582dcbe1
  Author: Anmol P. Paralkar <anmol.paralkar at oss.nxp.com>
  Date:   2023-08-14 (Mon, 14 Aug 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVPushPopOptimizer.cpp
    A llvm/test/CodeGen/RISCV/push-pop-opt-crash.ll

  Log Message:
  -----------
  [RISCV] Add bounds check before use on returned iterator.

Check iterator validity before use; fixes a crash seen in the RISC-V
Zcmp Push/Pop optimization pass when compiling an internal benchmark.

Reviewed By: asb, wangpc

Differential Revision: https://reviews.llvm.org/D157674




More information about the All-commits mailing list