[llvm] [SimplifyCFG] Use context instruction in foldBranchToCommonDest() (PR #203516)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 15 08:11:03 PDT 2026
================
----------------
nikic wrote:
This was a good call. It turns out that we have another bug in the KnowlegeRetention framework:
https://github.com/llvm/llvm-project/blob/d038850fde42c69028b84135437cb2be994d0ada/llvm/lib/Analysis/AssumeBundleQueries.cpp#L109-L114 This falls back to value 1 for non-constants, which is correct for assumes, but incorrect for dereferenceable. I guess we just didn't test the specific case of 1 byte dereferenceability anywhere else...
https://github.com/llvm/llvm-project/pull/203516
More information about the llvm-commits
mailing list