[PATCH] D50270: [x86] When using "and $0" and "orl $-1" to store 0 and -1 for minsize, make sure the store isn't volatile

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 3 14:12:16 PDT 2018


craig.topper created this revision.
craig.topper added reviewers: hans, RKSimon.

If the store is volatile this might be a memory mapped IO access. In that case we shouldn't generate a load that didn't exist in the source


https://reviews.llvm.org/D50270

Files:
  lib/Target/X86/X86InstrCompiler.td
  test/CodeGen/X86/store-zero-and-minus-one.ll
  test/CodeGen/X86/tail-opts.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50270.159088.patch
Type: text/x-patch
Size: 5162 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180803/c1bdb023/attachment.bin>


More information about the llvm-commits mailing list