[PATCH] D44083: [MergICmps] Make sure that the comparison only has one use.

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 12 08:43:12 PDT 2018


spatel accepted this revision.
spatel added a comment.
This revision is now accepted and ready to land.

LGTM.



================
Comment at: lib/Transforms/Scalar/MergeICmps.cpp:184
+  // If there are any other uses of the comparison, we cannot merge it with
+  // other comparisons at we would create an orphan use of the value.
+  if (!CmpI->hasOneUse()) {
----------------
at -> as


Repository:
  rL LLVM

https://reviews.llvm.org/D44083





More information about the llvm-commits mailing list