[all-commits] [llvm/llvm-project] c7dcac: [AMDGPU] Fixed asan failure in SIFoldOperands

Stanislav Mekhanoshin via All-commits all-commits at lists.llvm.org
Fri Oct 25 14:00:11 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c7dcacf16a680f6a5ef4cbe15ff9ca40f7d128b8
      https://github.com/llvm/llvm-project/commit/c7dcacf16a680f6a5ef4cbe15ff9ca40f7d128b8
  Author: Stanislav Mekhanoshin <Stanislav.Mekhanoshin at amd.com>
  Date:   2019-10-25 (Fri, 25 Oct 2019)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIFoldOperands.cpp

  Log Message:
  -----------
  [AMDGPU] Fixed asan failure in SIFoldOperands

Both tryFoldOMod() and tryFoldClamp() remove original instruction,
so the check MI.modifiesRegister() may use a deleted MI.

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




More information about the All-commits mailing list