[llvm] [GlobalIsel] Canonicalize G_ICMP (PR #108755)

Amara Emerson via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 15 22:40:12 PDT 2024


================
@@ -950,6 +950,16 @@ class GExtOrTruncOp : public GCastOp {
   };
 };
 
+/// Represents a splat vector.
+class GSplatVector : public GenericMachineInstr {
+public:
+  Register getValueReg() const { return getOperand(1).getReg(); }
----------------
aemerson wrote:

To be more descriptive how about call this `getScalarReg()` instead?

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


More information about the llvm-commits mailing list