[all-commits] [llvm/llvm-project] f254f1: [SVE] Remove getNumElements() warnings in InstComb...

david-arm via All-commits all-commits at lists.llvm.org
Fri May 29 00:05:09 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f254f1d94e8d0070b2d006a3d1e7ee6eeae0aaa7
      https://github.com/llvm/llvm-project/commit/f254f1d94e8d0070b2d006a3d1e7ee6eeae0aaa7
  Author: David Sherwood <david.sherwood at arm.com>
  Date:   2020-05-29 (Fri, 29 May 2020)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
    A llvm/test/Transforms/InstCombine/AArch64/sve-bitcast.ll

  Log Message:
  -----------
  [SVE] Remove getNumElements() warnings in InstCombiner::visitBitCast

Whilst trying to compile this test to assembly:

  CodeGen/aarch64-sve-intrinsics/acle_sve_reinterpret.c

I discovered some warnings were firing in InstCombiner::visitBitCast
due to calls to getNumElements() for scalable vector types. These
calls only really made sense for fixed width vectors so I have fixed
up the code appropriately.

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




More information about the All-commits mailing list