[PATCH] D123284: [ArgPromotion][Attributor] Update min-legal-vector-width when do promotion

Phoebe Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 7 00:07:50 PDT 2022


pengfei created this revision.
pengfei added reviewers: efriedma, jdoerfert, craig.topper, echristo, uenoku.
Herald added subscribers: ormris, StephenFan, dexonsmith, okura, kuter, hiraditya.
Herald added a reviewer: homerdin.
Herald added a project: All.
pengfei requested review of this revision.
Herald added a reviewer: sstefan1.
Herald added a reviewer: baziotis.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

X86 codegen uses min-legal-vector-width to decide the proper ABI level.
So we should always make sure the attribute reflects the correct vector
width when doing argument promotion.

Here are failed case: https://godbolt.org/z/zo3hba8xW


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D123284

Files:
  llvm/include/llvm/IR/Attributes.h
  llvm/lib/IR/Attributes.cpp
  llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
  llvm/lib/Transforms/IPO/Attributor.cpp
  llvm/test/Transforms/ArgumentPromotion/byval-3.ll
  llvm/test/Transforms/Attributor/ArgumentPromotion/X86/min-legal-vector-width.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123284.421105.patch
Type: text/x-patch
Size: 36771 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220407/9e037686/attachment.bin>


More information about the llvm-commits mailing list