[llvm] [WPD]Regard unreachable function as a possible devirtualizable target (PR #115668)

Mingming Liu via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 12 21:07:55 PST 2024


================
@@ -167,6 +167,18 @@ static cl::list<std::string>
                       cl::desc("Prevent function(s) from being devirtualized"),
                       cl::Hidden, cl::CommaSeparated);
 
+/// A function is unreachable if its entry block ends with 'unreachable' IR
----------------
minglotus-6 wrote:

Updated the surrounding comment with the motivating case and a TODO for Clang's codegen, and updated PR description as suggested. 

https://github.com/llvm/llvm-project/pull/115668


More information about the llvm-commits mailing list