[PATCH] D141777: [X86] Reenable store merging post-legalization

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 15 06:42:21 PST 2023


lebedev.ri marked 3 inline comments as done.
lebedev.ri added inline comments.


================
Comment at: llvm/include/llvm/CodeGen/TargetLowering.h:606
+  enum class StoreSource {
+    Unknown,
+    Constant,
----------------
barannikov88 wrote:
> lebedev.ri wrote:
> > barannikov88 wrote:
> > > Appears unused with std::optional.
> > > 
> > I do not follow. Both the struct and the element are both clearly still used.
> Yes, my bad. Although mergeStoresAfterLegalization will never receive Unknown.
> I'd suggest to stick to either Unknown or std::optional, but not both. Either is fine to me.
> 
Note that i'm simply moving the existing `enum`, it can't not have all of it's original elements.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D141777/new/

https://reviews.llvm.org/D141777



More information about the llvm-commits mailing list