[llvm] [NFC][AArch64] Refactor AArch64LoopIdiomTransform in preparation for more idioms (PR #78471)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 23 05:55:28 PST 2024


================
@@ -187,6 +180,38 @@ AArch64LoopIdiomTransformPass::run(Loop &L, LoopAnalysisManager &AM,
 //
 //===----------------------------------------------------------------------===//
 
+struct MemCompareIdiom {
+private:
----------------
david-arm wrote:

We could, but I saw lots of other places in LLVM where we use struct for smaller tasks like this so I thought maybe I should do the same. To be honest, I'm not entirely sure what the difference is. I'm happy to change it to class if that brings benefits!

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


More information about the llvm-commits mailing list