[PATCH] D75654: [x86][slh] Move isDataInvariant* functions

Zola Bridges via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 4 15:46:26 PST 2020


zbrid created this revision.
zbrid added reviewers: craig.topper, gbiv, jyknight.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a reviewer: george.burgess.iv.
Herald added a project: LLVM.

I moved these functions to X86InstrInfo.cpp, so they are available from
another pass. In addition, this is a step toward resolving the FIXME to
move this metadata to the instruction tables.

This is the final step to make these two data invariance checks
available for non-SLH passes.

The other two steps were here:

- https://reviews.llvm.org/D70283
- https://reviews.llvm.org/D75650

Tested via llvm-lit llvm/test/CodeGen/X86/speculative-load-hardening*


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D75654

Files:
  llvm/lib/Target/X86/X86InstrInfo.cpp
  llvm/lib/Target/X86/X86InstrInfo.h
  llvm/lib/Target/X86/X86SpeculativeLoadHardening.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75654.248346.patch
Type: text/x-patch
Size: 31629 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200304/d42f247a/attachment.bin>


More information about the llvm-commits mailing list