[llvm] [InstCombine] Don't sink if it would require dropping deref assumptions. (PR #166945)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 8 00:54:46 PST 2025


================
@@ -5413,6 +5413,18 @@ bool InstCombinerImpl::tryToSinkInstruction(Instruction *I,
         return false;
   }
 
+  // Do not sink if there are dereferenceable assumes that would be removed.
+  for (User *User : I->users()) {
----------------
dtcxzyw wrote:

Did you forget to push the changes?

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


More information about the llvm-commits mailing list