[PATCH] D80924: [CostModel] Use MaybeAlign in getMemoryOpCost

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 4 08:14:38 PDT 2020


samparker added a comment.

> We should remove MaybeAlign entirely. Nothing is ever truly missing the alignment, and Align(1) is always a acceptable degenerate value.

Okay, so for my case where TTIImpl can't pass the object to BasicTTI, I could just check whether alignment is assigned, and if not, then just pass Align(1)?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D80924





More information about the llvm-commits mailing list