[PATCH] D80943: [X86] Add a flag to guard the wide load

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 1 14:05:48 PDT 2020


efriedma added a comment.

See https://reviews.llvm.org/rL51019 for the original commit.

The benefits of matching loadi32 like this are:

1. mov is one byte shorter than movzx
2. We can fold the load into a subsequent 32-bit instruction in some cases.

And the downside, of course, is that if we're unlucky and create a hazard, there's a performance hit.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D80943





More information about the llvm-commits mailing list