[PATCH] D124050: llvm-reduce: Fix not removing first instruction in MachineBasicBlock

Markus Lavin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 20 05:33:36 PDT 2022


markus added inline comments.


================
Comment at: llvm/tools/llvm-reduce/deltas/ReduceInstructionsMIR.cpp:111
+        unsigned ImpDef = IsGeneric ? TargetOpcode::G_IMPLICIT_DEF
+                                    : TargetOpcode::IMPLICIT_DEF;
+        BuildMI(*EntryMBB, EntryInsPt, DebugLoc(), TII->get(ImpDef))
----------------
When I originally decided to just slap a implicit-def to the first MI in the entry block instead of building a new instruction I thought it would be unsafe for the delta debugging algorithm to add instructions here. I did not dig deep into that though so maybe it is of no concern.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D124050/new/

https://reviews.llvm.org/D124050



More information about the llvm-commits mailing list