[PATCH] D113125: [LoopVectorize] Propagate fast-math flags for VPInstruction

Rosie Sumpter via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 5 05:34:08 PDT 2021


RosieSumpter updated this revision to Diff 385036.
RosieSumpter added a comment.
Herald added a subscriber: dexonsmith.

- Added a print method to the ##FastMathFlags## class and used it in ##VPInstruction::print##
- Added a test to vplan-printing.ll
- Assert that the VPInstruction opcode is for a floating-point operation when setting fast-math flags


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

https://reviews.llvm.org/D113125

Files:
  llvm/include/llvm/IR/Operator.h
  llvm/lib/IR/AsmWriter.cpp
  llvm/lib/IR/Operator.cpp
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
  llvm/lib/Transforms/Vectorize/VPlan.cpp
  llvm/lib/Transforms/Vectorize/VPlan.h
  llvm/test/Transforms/LoopVectorize/AArch64/scalable-strict-fadd.ll
  llvm/test/Transforms/LoopVectorize/vplan-printing.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113125.385036.patch
Type: text/x-patch
Size: 8296 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211105/e3690917/attachment-0001.bin>


More information about the llvm-commits mailing list