[clang] [llvm] [SROA] Canonicalize homogeneous structs to fixed vectors (opt-in, after memcpyopt) (PR #165159)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Thu May 14 06:52:00 PDT 2026


================
@@ -21,15 +21,26 @@ namespace llvm {
 
 class Function;
 
-enum class SROAOptions : bool { ModifyCFG, PreserveCFG };
+struct SROAOptions {
+  enum CFGOption { ModifyCFG, PreserveCFG };
+
+  CFGOption CFG;
+  bool CanonicalizeStructToVector;
----------------
arsenm wrote:

I think the name here could use work, don't really need the "Canonicalize" part

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


More information about the cfe-commits mailing list