]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Pull in r337861 from upstream llvm trunk (by Hideki Saito):
authordim <dim@FreeBSD.org>
Wed, 16 Jan 2019 20:38:17 +0000 (20:38 +0000)
committerdim <dim@FreeBSD.org>
Wed, 16 Jan 2019 20:38:17 +0000 (20:38 +0000)
commitef2c5b88aaf295bc7ff528d24c98afbe14bcd623
treef76a2afa9ae14d63fcd0f9025ba6a8809579623a
parentd85a716052120bdfc99dadf9c9a7e6e3dc3d8584
Pull in r337861 from upstream llvm trunk (by Hideki Saito):

  [LV] Fix for PR38110, LV encountered llvm_unreachable()

  Summary: truncateToMinimalBitWidths() doesn't handle all Instructions
  and the worst case is compiler crash via llvm_unreachable(). Fix is
  to add a case to handle PHINode and changed the worst case to NO-OP
  (from compiler crash).

  Reviewers: sbaranga, mssimpso, hsaito

  Reviewed By: hsaito

  Subscribers: llvm-commits

  Differential Revision: https://reviews.llvm.org/D49461

This should fix "Unhandled instruction type!" (if assertions are
enabled) or segmentation faults (if assertions are disabled) when
compiling certain versions of the net-p2p/gtk-gnutella port.

Direct commit to stable/11 and stable/12, since head already has this
fix.

Reported by: Jamie Landeg-Jones <jamie@catflap.org>
PR: 234987
contrib/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp