[PATCH] D23174: GVN-hoist: fix early exit logic
Daniel Berlin via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 4 13:34:17 PDT 2016
dberlin accepted this revision.
This revision is now accepted and ready to land.
================
Comment at: lib/Transforms/Scalar/GVNHoist.cpp:897
@@ +896,3 @@
+ // Also do not bother analyzing the following kinds of instructions.
+ if (!isa<TerminatorInst>(&I1))
+ II.insert(&I1, VN);
----------------
I hope this is not a correctness fix :)
https://reviews.llvm.org/D23174
More information about the llvm-commits
mailing list