Check iterator validity before use; fixes crash seen in the RISC-V
Zcmp Push/Pop optimization when compiling internal benchmark.
Includes test case (pre fix reproducer derived using bugpoint).
Paths
| Differential D157674
[RISCV] Add bounds check before use on returned iterator. ClosedPublic Authored by anmolparalkar-nxp on Aug 10 2023, 8:22 PM.
Details Summary Check iterator validity before use; fixes crash seen in the RISC-V Includes test case (pre fix reproducer derived using bugpoint).
Diff Detail Event TimelineThis revision is now accepted and ready to land.Aug 10 2023, 10:08 PM Closed by commit rG53e89f5e3f2c: [RISCV] Add bounds check before use on returned iterator. (authored by anmolparalkar-nxp). · Explain WhyAug 14 2023, 4:10 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 549231 llvm/lib/Target/RISCV/RISCVPushPopOptimizer.cpp
llvm/test/CodeGen/RISCV/push-pop-opt-crash.ll
|