[PATCH] D87301: [IRSim][IROutliner] Adding consistent function attribute merging

Andrew Litteken via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 8 10:26:36 PDT 2020


AndrewLitteken created this revision.
AndrewLitteken added a reviewer: paquette.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a reviewer: jdoerfert.
Herald added a project: LLVM.
AndrewLitteken requested review of this revision.

When combining extracted functions, they may have different function attributes.  We want to make sure that we do not make any assumptions, or lose any information.  This attempts to make sure that we consolidate function attributes to their most general case.

Tests:

- llvm/test/Transforms/IROutliner/outlining-compatible-and-attribute-transfer.ll
- llvm/test/Transforms/IROutliner/outlining-compatible-or-attribute-transfer.ll


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87301

Files:
  llvm/include/llvm/IR/Attributes.h
  llvm/lib/IR/Attributes.cpp
  llvm/lib/Transforms/IPO/IROutliner.cpp
  llvm/test/Transforms/IROutliner/outlining-compatible-and-attribute-transfer.ll
  llvm/test/Transforms/IROutliner/outlining-compatible-or-attribute-transfer.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87301.290529.patch
Type: text/x-patch
Size: 12629 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200908/78431734/attachment.bin>


More information about the llvm-commits mailing list