[llvm] [DeadStoreElimination] Optimize tautological assignments (PR #75744)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 16 09:46:52 PST 2024


================
@@ -1931,6 +1976,9 @@ struct DSEState {
     if (!Store)
       return false;
 
+    if (dominatingConditionImpliesValue(Def))
----------------
hiraditya wrote:

I think we should pass the `Store` instruction here to avoid confusion in the callee. That will also remove a dyn_cast you have there.

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


More information about the llvm-commits mailing list