[PATCH] D120240: [InstCombine] Bail out of load-store forwarding for scalable vector types

David Sherwood via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 21 02:50:52 PST 2022


david-arm created this revision.
david-arm added reviewers: sdesmalen, CarolineConcatto, efriedma, nikic.
Herald added a subscriber: hiraditya.
david-arm requested review of this revision.
Herald added subscribers: llvm-commits, alextsao1999.
Herald added a project: LLVM.

This patch fixes an invalid TypeSize->uint64_t implicit conversion in
FoldReinterpretLoadFromConst. If the size of the constant is scalable
we bail out of the optimisation for now.

Tests added here:

  Transforms/InstCombine/load-store-forward.ll


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D120240

Files:
  llvm/lib/Analysis/ConstantFolding.cpp
  llvm/test/Transforms/InstCombine/load-store-forward.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120240.410260.patch
Type: text/x-patch
Size: 11265 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220221/09ae8616/attachment.bin>


More information about the llvm-commits mailing list