[all-commits] [llvm/llvm-project] 0f9b1c: [FuzzMutate] Correct type cast and add unit test f...

Peter Rong via All-commits all-commits at lists.llvm.org
Tue Apr 25 17:28:15 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0f9b1c8872ef0bb041b301f9932d3f0be180f425
      https://github.com/llvm/llvm-project/commit/0f9b1c8872ef0bb041b301f9932d3f0be180f425
  Author: Peter Rong <PeterRong96 at gmail.com>
  Date:   2023-04-25 (Tue, 25 Apr 2023)

  Changed paths:
    M llvm/lib/FuzzMutate/IRMutator.cpp
    M llvm/unittests/FuzzMutate/StrategiesTest.cpp

  Log Message:
  -----------
  [FuzzMutate] Correct type cast and add unit test for FCmp

This revision fixes an incorrect type cast from Instruction to ICmpInstr, which should have been to FCmpInstr instead. It turns out that StrategiesTest.cpp was missing a test case for InstModificationIRStrategy and FCmp, which is also now implemented in this revision. After this revision, [[ https://reviews.llvm.org/D148854 | llvm-stress in D148854 ]] no longer crashes randomly.

Reviewed By: Peter

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




More information about the All-commits mailing list