[PATCH] D20497: [ValueTracking, InstCombine] extend isKnownToBeAPowerOfTwo() to handle vector splat constants
David Majnemer via llvm-commits
llvm-commits at lists.llvm.org
Fri May 20 15:58:15 PDT 2016
majnemer accepted this revision.
majnemer added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: lib/Analysis/ValueTracking.cpp:1504
@@ +1503,3 @@
+
+ const APInt *ConstIntOrConstSplatInt = nullptr;
+ if (match(C, m_APInt(ConstIntOrConstSplatInt)))
----------------
I don't think you need to initialize this.
http://reviews.llvm.org/D20497
More information about the llvm-commits
mailing list