[all-commits] [llvm/llvm-project] c7afb6: [AMDGPU] Avoid calling copyFastMathFlags in wrong ...

Piotr Sobczak via All-commits all-commits at lists.llvm.org
Wed Dec 16 01:28:47 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c7afb698caf00f0ad0b479f7d2869c119aa3482e
      https://github.com/llvm/llvm-project/commit/c7afb698caf00f0ad0b479f7d2869c119aa3482e
  Author: Piotr Sobczak <Piotr.Sobczak at amd.com>
  Date:   2020-12-16 (Wed, 16 Dec 2020)

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

  Log Message:
  -----------
  [AMDGPU] Avoid calling copyFastMathFlags in wrong context

Calling Instruction::copyFastMathFlags() assumes the caller is
FPMathOperator. Avoid calling the function for instructions
that are not instances of FPMathOperator.




More information about the All-commits mailing list