[PATCH] D49806: [FPEnv] Widen illegal width StrictFP vector operations as needed

Cameron McInally via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 25 09:38:45 PDT 2018


cameron.mcinally created this revision.
cameron.mcinally added reviewers: uweigand, craig.topper, andrew.w.kaylor, hfinkel.
Herald added a subscriber: llvm-commits.

Here's a patch to widen illegal StrictFP vector operations.

This code appears to be a real bear at first glance, but you'll notice that the bulk of the code was borrowed from DAGTypeLegalizer::WidenVecRes_BinaryCanTrap(SDNode *N). I modified that code to make the operand handling more generic (unary, binary, and ternary) and to track the Chains attached to StrictFP operation.


Repository:
  rL LLVM

https://reviews.llvm.org/D49806

Files:
  lib/CodeGen/SelectionDAG/LegalizeTypes.h
  lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
  test/CodeGen/X86/vector-constrained-fp-intrinsics.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49806.157292.patch
Type: text/x-patch
Size: 90197 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180725/575fa945/attachment.bin>


More information about the llvm-commits mailing list