[PATCH] D137323: [InstCombine] Perform memset -> load forwarding

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 3 07:15:41 PDT 2022


spatel added inline comments.


================
Comment at: llvm/test/Transforms/InstCombine/load-store-forward.ll:282-283
 ;
   call void @llvm.memset.p0.i64(ptr %a, i8 0, i64 16, i1 false)
   %v = load i27, ptr %a
   ret i27 %v
----------------
Do we have a negative test like this except we're 1-bit short of covering the loaded amount?
Similarly, add a negative test where there's a store or some other interference between the memset and the load?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D137323/new/

https://reviews.llvm.org/D137323



More information about the llvm-commits mailing list