[PATCH] D23072: Have only one real instructionClobbersQuery

George Burgess IV via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 2 14:51:33 PDT 2016


george.burgess.iv accepted this revision.
george.burgess.iv added a comment.
This revision is now accepted and ready to land.

LGTM with nits. Thanks!


================
Comment at: lib/Transforms/Utils/MemorySSA.cpp:141
@@ +140,3 @@
+      return CS.getCalledValue() == Other.CS.getCalledValue();
+    else
+      return Loc == Other.Loc;
----------------
IIRC, this else was removed in a post-commit review? (If not, please remove it anyway :) )

================
Comment at: lib/Transforms/Utils/MemorySSA.cpp:196
@@ +195,3 @@
+                                    AA);
+  else
+    return instructionClobbersQuery(MD, UseMLOC.getLoc(), MU->getMemoryInst(),
----------------
Please remove `else`


https://reviews.llvm.org/D23072





More information about the llvm-commits mailing list