[PATCH] D100109: [RegisterScavenging] Add asserts for better errors
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 8 08:47:03 PDT 2021
arsenm added inline comments.
================
Comment at: llvm/lib/CodeGen/RegisterScavenging.cpp:430
}
+ assert(I != MBB.begin() && "Did not find target instruction while "
+ "iterating backwards");
----------------
What if you did intend to scavenge at the beginning? Also seems weird to assert here when there's a break on begin above
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100109/new/
https://reviews.llvm.org/D100109
More information about the llvm-commits
mailing list