[llvm] [ExtendLifetimes] Implement llvm.fake.use to extend variable lifetimes (PR #86149)

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 29 11:39:54 PDT 2024


================
@@ -0,0 +1,98 @@
+; REQUIRES: object-emission
+
+; Make sure the fake use of 'b' at the end of 'foo' causes location information for 'b'
+; to extend all the way to the end of the function.
----------------
dwblaikie wrote:

Making something that pretty firmly forces optimizations that would reuse the storage shouldn't be too hard... 

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


More information about the llvm-commits mailing list