[llvm] [CodeGen][TII] Simplify analyzeSelect (PR #175828)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 30 09:32:49 PST 2026


================
@@ -175,9 +174,7 @@ class RISCVInstrInfo : public RISCVGenInstrInfo {
   bool isBranchOffsetInRange(unsigned BranchOpc,
                              int64_t BrOffset) const override;
 
-  bool analyzeSelect(const MachineInstr &MI,
-                     SmallVectorImpl<MachineOperand> &Cond, unsigned &TrueOp,
-                     unsigned &FalseOp, bool &Optimizable) const override;
+  bool analyzeSelect(const MachineInstr &MI, bool &Optimizable) const override;
----------------
arsenm wrote:

I don't see the point of retaining the "Optimizable" argument at all. If there aren't any outputs, there's no meaningful distinction between analyzed and not "optimizable" 

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


More information about the llvm-commits mailing list