[all-commits] [llvm/llvm-project] bfdb83: [Sparc] Fix incorrect operand for matching CMPri p...

Tsung-Chun Lin via All-commits all-commits at lists.llvm.org
Sun Mar 1 19:32:50 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: bfdb834bc3d5e948002e5061a4c50d5c9a97de59
      https://github.com/llvm/llvm-project/commit/bfdb834bc3d5e948002e5061a4c50d5c9a97de59
  Author: Jim Lin <tclin914 at gmail.com>
  Date:   2020-03-02 (Mon, 02 Mar 2020)

  Changed paths:
    M llvm/lib/Target/Sparc/SparcISelLowering.cpp
    M llvm/test/CodeGen/SPARC/fp128.ll

  Log Message:
  -----------
  [Sparc] Fix incorrect operand for matching CMPri pattern

Summary:
It should be normal constant instead of target constant.
Pattern CMPri can be matched if the constant can be fitted into immediate field.
Otherwise, pattern CMPrr will be matched.
This fixed bug https://bugs.llvm.org/show_bug.cgi?id=44091.

Reviewers: dcederman, jyknight

Reviewed By: jyknight

Subscribers: jonpa, hiraditya, fedor.sergeev, jrtc27, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list