[all-commits] [llvm/llvm-project] 370a8c: [SystemZ] Make sure not to call getZExtValue on a ...

Jonas Paulsson via All-commits all-commits at lists.llvm.org
Wed Sep 23 06:37:17 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 370a8c802558ed7aedbcc09c1bdf4c2d3f4c28c0
      https://github.com/llvm/llvm-project/commit/370a8c802558ed7aedbcc09c1bdf4c2d3f4c28c0
  Author: Jonas Paulsson <paulsson at linux.vnet.ibm.com>
  Date:   2020-09-23 (Wed, 23 Sep 2020)

  Changed paths:
    M llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
    A llvm/test/Analysis/CostModel/SystemZ/huge-immediates.ll

  Log Message:
  -----------
  [SystemZ] Make sure not to call getZExtValue on a >64 bit constant.

Better use isZero() and isIntN() in SystemZTargetTransformInfo rather than
calling getZExtValue() since the immediate operand may be wider than 64 bits,
which is not allowed with getZExtValue().

Fixes https://bugs.llvm.org/show_bug.cgi?id=47600

Review: Simon Pilgrim




More information about the All-commits mailing list