[all-commits] [llvm/llvm-project] b9c644: AMDGPU: Fix failures from overflowing uint8_t numb...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Thu Jul 23 12:40:02 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b9c644ec6134dcfac7d3e8806cf3605564fd8ace
      https://github.com/llvm/llvm-project/commit/b9c644ec6134dcfac7d3e8806cf3605564fd8ace
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2020-07-23 (Thu, 23 Jul 2020)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
    A llvm/test/CodeGen/AMDGPU/huge-number-operand-folds.mir

  Log Message:
  -----------
  AMDGPU: Fix failures from overflowing uint8_t number of operands

If the operand index exceeded the limit of unsigned char, it wrapped
and would point to the wrong operand. Increase the size of the operand
index field to avoid this, and also don't bother trying to fold into
implicit operands.




More information about the All-commits mailing list