[all-commits] [llvm/llvm-project] 1e9924: [LoongArch] Fixing the incorrect return value of L...

wanglei via All-commits all-commits at lists.llvm.org
Thu Jan 25 18:24:21 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1e9924c1f248bbddcb95d82a59708d617297dad3
      https://github.com/llvm/llvm-project/commit/1e9924c1f248bbddcb95d82a59708d617297dad3
  Author: wanglei <wanglei at loongson.cn>
  Date:   2024-01-26 (Fri, 26 Jan 2024)

  Changed paths:
    M llvm/lib/Target/LoongArch/LoongArchTargetTransformInfo.cpp

  Log Message:
  -----------
  [LoongArch] Fixing the incorrect return value of LoongArchTTIImpl::getRegisterBitWidth (#79441)

When we do not enable vector features, we should return the default
value (`TargetTransformInfoImplBase::getRegisterBitWidth`) instead of
zero.

This should fix the LoongArch [buildbot
breakage](https://lab.llvm.org/staging/#/builders/5/builds/486) from
#78943.




More information about the All-commits mailing list