[llvm] [RFC] Memory Model Relaxation Annotations (PR #78569)

Pierre van Houtryve via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 7 02:51:11 PST 2024


================
@@ -157,6 +157,35 @@ return:                                           ; preds = %if.end, %if.then
   ret ptr %retval.0
 }
 
+; TODO: Should this work?
+define void @test6(i1 %b, ptr %x) {
----------------
Pierre-vh wrote:

I'm not sure this is ok. I think we might want to inhibit the optimization in this case to avoid losing MMRAs too much.
GVN kicks in a lot and if we merge MMRAs a couple of times we can easily end up with the empty set again.

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


More information about the llvm-commits mailing list