[PATCH] D111862: [AArch64] Canonicalize X*(Y+1) or X*(1-Y) to madd/msub

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 16 17:57:44 PST 2023


efriedma added a comment.

The pattern isn't undef-safe, but it's poison-safe.  We haven't been going after transforms like that very aggressively lately, given https://discourse.llvm.org/t/rfc-load-instruction-uninitialized-memory-semantics/67481 .  But yes, it should freeze the operand.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D111862



More information about the llvm-commits mailing list