[PATCH] D24805: [GVNSink] Initial GVNSink prototype
Aditya Kumar via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 21 13:25:33 PDT 2016
hiraditya added inline comments.
================
Comment at: lib/Transforms/Scalar/GVNSink.cpp:610
@@ +609,3 @@
+ if (Candidates.empty() || Candidates.front().Cost <= 0)
+ return {0, false};
+ auto C = Candidates.front();
----------------
This could be checked before sort and reverse.
Repository:
rL LLVM
https://reviews.llvm.org/D24805
More information about the llvm-commits
mailing list