[PATCH] D84715: [FIX] Add check for empty body function
Wenlei He via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 27 21:51:44 PDT 2020
wenlei added a comment.
I'm guessing these are not the only passes that will choke with empty/dead functions. If this is because ORE is being used for a special case, then we might want to fix the special case on the user side.
If we want passes to absorb such empty functions, then there needs to be consistency for all passes. I don't think passes need to absorb such cases though, as this is really a "limbo state" of functions when being removed (a normal empty function should still have entry block and ret instruction).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D84715/new/
https://reviews.llvm.org/D84715
More information about the llvm-commits
mailing list