[PATCH] D68408: [InstCombine] Negator - sink sinkable negations

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 14 15:50:34 PDT 2019


efriedma added a comment.

Hmm, that's a bit more complicated than I hoped it would be... but I don't see any obvious way to simplify it.

It looks like this speculatively creates new instructions, then erases them on failure?



================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineNegator.cpp:1
+//===- InstCombineAddSub.cpp ------------------------------------*- C++ -*-===//
+//
----------------
InstCombineAddSub.cpp?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D68408





More information about the llvm-commits mailing list