[llvm] [LoopLoadElim] Fix miscompile caused by incorrect store-to-load forwarding across mixed-width clobbers (PR #224833)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 20 07:31:38 PDT 2026


================
@@ -0,0 +1,132 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 6
+; RUN: opt -passes=loop-load-elim -S < %s | FileCheck %s
+;
+; Do not forward across a partial clobber, but preserve forwarding when a
+; later full-width store overwrites the clobber.
----------------
nikic wrote:

Outdated comment (also in PR description)?

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


More information about the llvm-commits mailing list