[PATCH] D139594: [FuzzMutate] InstModificationStrategy, add FastMath flags and exact flags to instructions.
Peter Rong via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 10 11:05:34 PST 2022
Peter marked 2 inline comments as done.
Peter added inline comments.
================
Comment at: llvm/lib/FuzzMutate/IRMutator.cpp:292-303
+ case Instruction::FNeg:
+ case Instruction::FAdd:
+ case Instruction::FSub:
+ case Instruction::FMul:
+ case Instruction::FDiv:
+ case Instruction::FRem:
+ addFastMathFlagSetterIf([](Instruction &) { return true; });
----------------
arsenm wrote:
> You can dyn_cast to FPMathOperator to get all fast math flag compatible operations without maintaining the instruction list
I didn't know `FPMathOperator` can work on call inst. Thanks for pointing out.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139594/new/
https://reviews.llvm.org/D139594
More information about the llvm-commits
mailing list