[all-commits] [llvm/llvm-project] beeabe: [SVE] Fix invalid usage of VectorType::getNumEleme...

Christopher Tetreault via All-commits all-commits at lists.llvm.org
Fri May 1 10:57:00 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: beeabe382ddab1c47ca01de1d5e6165d5167bc7d
      https://github.com/llvm/llvm-project/commit/beeabe382ddab1c47ca01de1d5e6165d5167bc7d
  Author: Christopher Tetreault <ctetreau at quicinc.com>
  Date:   2020-05-01 (Fri, 01 May 2020)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp

  Log Message:
  -----------
  [SVE] Fix invalid usage of VectorType::getNumElements() in InstCombine

Summary:
Make foldVectorBinop return null if the instruction type is a scalable
vector. It is unclear what, if any, of this function works with scalable
vectors.

Identified by test LLVM.Transforms/InstCombine::nsw.ll

Reviewers: efriedma, david-arm, fpetrogalli, spatel

Reviewed By: efriedma

Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list