[PATCH] D56772: [MIR] Add simple PRE pass to MachineCSE

Hal Finkel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 24 09:52:19 PST 2019


hfinkel added a comment.

Have you measured the compile-time impact?



================
Comment at: lib/CodeGen/MachineCSE.cpp:755
+// We use stronger conditions for PREed instrs rather than for CSE ones
+// to decrease number of PREed instrs that won't be CSEed.
+bool MachineCSE::isPRECandidate(MachineInstr *MI) {
----------------
I think it would be useful to elaborate on under what conditions we create these PRE instructions that are not later CSEd. Do you know how often that happens (I assume that you can figure this out by looking at the statistics and comparing runs where this happens vs. where it doesn't)?



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

https://reviews.llvm.org/D56772





More information about the llvm-commits mailing list