[PATCH] D62257: [DAGCombiner][X86][AArch64] (x - C) + y -> (x + y) - C fold

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 22 08:13:25 PDT 2019


RKSimon added a comment.

Its rather annoying that the DAGCombiner::visitSUB limits the (sub x, c) -> (add x, -c) fold to non-vectors


Repository:
  rL LLVM

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

https://reviews.llvm.org/D62257





More information about the llvm-commits mailing list