[PATCH] D77029: Fix out-of-bounds BitVector access in RegScavenger

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 27 13:31:36 PDT 2020


efriedma added a comment.

> Did you try adding the unreachable as I suggested above?

The code is reachable.  The problem is coming up with a testcase where the change has a visible effect; in the vast majority of cases, it won't (because we don't use the resulting RegScavenger state, or the register is known dead anyway, or there's another free register).


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D77029



More information about the llvm-commits mailing list