[all-commits] [llvm/llvm-project] 79d34a: [SVE][CodeGen] Fix bug when falling back to DAG ISel

david-arm via All-commits all-commits at lists.llvm.org
Tue Jul 7 01:32:38 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 79d34a5a1bce39d8153be3665456e9cb0cc8601b
      https://github.com/llvm/llvm-project/commit/79d34a5a1bce39d8153be3665456e9cb0cc8601b
  Author: David Sherwood <david.sherwood at arm.com>
  Date:   2020-07-07 (Tue, 07 Jul 2020)

  Changed paths:
    M llvm/include/llvm/CodeGen/GlobalISel/CallLowering.h
    M llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
    M llvm/lib/Target/AArch64/GISel/AArch64CallLowering.cpp
    M llvm/lib/Target/AArch64/GISel/AArch64CallLowering.h
    M llvm/test/CodeGen/AArch64/GlobalISel/arm64-fallback.ll

  Log Message:
  -----------
  [SVE][CodeGen] Fix bug when falling back to DAG ISel

In an earlier commit 584d0d5c1749c13625a5d322178ccb4121eea610 I
added functionality to allow AArch64 CodeGen support for falling
back to DAG ISel when Global ISel encounters scalable vector
types. However, it seems that we were not falling back early
enough as llvm::getLLTForType was still being invoked for scalable
vector types.

I've added a new fallback function to the call lowering class in
order to catch this problem early enough, rather than wait for
lowerFormalArguments to reject scalable vector types.

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




More information about the All-commits mailing list