[llvm-dev] Disable combining of loads and stores in instcombine

Arsenault, Matthew via llvm-dev llvm-dev at lists.llvm.org
Wed Apr 17 05:02:44 PDT 2019

This won’t happen with volatile load/store


From: llvm-dev <llvm-dev-bounces at lists.llvm.org> on behalf of llvm-dev <llvm-dev at lists.llvm.org>
Reply-To: Neil Ryan <neilryan at cs.washington.edu>
Date: Tuesday, April 16, 2019 at 9:01 PM
To: llvm-dev <llvm-dev at lists.llvm.org>
Subject: [llvm-dev] Disable combining of loads and stores in instcombine

 LLVM's optimizer combines stores to consecutive characters into a write of a single word.  For instance, if I have char A[4] and I write some static value to each element, these writes would be combined into a single 32-bit word write. I found this thread<http://llvm.1065342.n5.nabble.com/disabling-combining-load-stores-in-optimizer-td37560.html> from 2009 -- it seems like it wasn't possible then. Has anything changed since?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190417/56b9f3ab/attachment.html>

More information about the llvm-dev mailing list