[PATCH] D126089: [WPD] Make sure type test is eliminated
Teresa Johnson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 20 14:21:39 PDT 2022
tejohnson added inline comments.
================
Comment at: llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp:1929
+ if (!CI->use_empty())
+ CI->replaceAllUsesWith(ConstantInt::getTrue(M.getContext()));
// We can't use RecursivelyDeleteTriviallyDeadInstructions here because we
----------------
The equivalent code in LowerTypeTests::lower() asserts that the users are all phi nodes in this case. Can you add the same check here?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126089/new/
https://reviews.llvm.org/D126089
More information about the llvm-commits
mailing list