[all-commits] [llvm/llvm-project] 788e7b: [Lanai] implement wide immediate support

Serge Bazanski via All-commits all-commits at lists.llvm.org
Fri Sep 10 03:55:47 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 788e7b3b8c285d63a4ef354608240e1376179c79
      https://github.com/llvm/llvm-project/commit/788e7b3b8c285d63a4ef354608240e1376179c79
  Author: Serge Bazanski <q3k at q3k.org>
  Date:   2021-09-10 (Fri, 10 Sep 2021)

  Changed paths:
    M llvm/lib/Target/Lanai/LanaiTargetTransformInfo.h
    M llvm/test/CodeGen/Lanai/lowering-128.ll

  Log Message:
  -----------
  [Lanai] implement wide immediate support

This fixes LanaiTTIImpl::getIntImmCost to return valid costs for i128
(and wider) values. Previously any immediate wider than
64 bits would cause Lanai llc to crash.

A regression test is also added that exercises this functionality.

Reviewed By: jpienaar

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




More information about the All-commits mailing list