[PATCH] D24365: [PR29121] Don't fold if it would produce atomic vector loads or stores

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 8 14:57:57 PDT 2016


reames created this revision.
reames added reviewers: jfb, chandlerc, sanjoy, steven_wu.
reames added a subscriber: llvm-commits.
Herald added a subscriber: mcrosier.

The instcombine code which folds loads and stores into their use types can trip up if the use is a bitcast to a type which we can't directly load or store in the IR.  In principle, such types shouldn't exist, but in practice they do today.  This is a workaround to avoid a bug while we work towards the long term goal.



https://reviews.llvm.org/D24365

Files:
  lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
  test/Transforms/InstCombine/atomic.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24365.70755.patch
Type: text/x-patch
Size: 4321 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160908/7c0e3e69/attachment.bin>


More information about the llvm-commits mailing list