HomePhabricator

[AMDGPU] Avoid calling copyFastMathFlags in wrong context

Authored by piotr on Dec 16 2020, 1:12 AM.

Description

[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.

Details

Committed
piotrDec 16 2020, 1:22 AM
Parents
rGf141d1afc506: [NFC] Pre-commit test for long-double builtins
Branches
Unknown
Tags
Unknown