[llvm] [PowerPC][RFC] Retire PPCExpandISel pass (PR #84289)

Kai Luo via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 24 19:03:15 PDT 2024


================
@@ -32,14 +32,7 @@ STATISTIC(NumExpanded, "Number of ISEL instructions expanded");
 STATISTIC(NumRemoved, "Number of ISEL instructions removed");
 STATISTIC(NumFolded, "Number of ISEL instructions folded");
 
-// If -ppc-gen-isel=false is set, we will disable generating the ISEL
-// instruction on all PPC targets. Otherwise, if the user set option
-// -misel or the platform supports ISEL by default, still generate the
-// ISEL instruction, else expand it.
-static cl::opt<bool>
-    GenerateISEL("ppc-gen-isel",
-                 cl::desc("Enable generating the ISEL instruction."),
-                 cl::init(true), cl::Hidden);
----------------
bzEq wrote:

The option is controlling whether to generate `isel` instruction rather than enabling this pass. I've moved this option to `PPCInstrInfo` where in my view is a proper place.

https://github.com/llvm/llvm-project/pull/84289


More information about the llvm-commits mailing list