[PATCH] D16978: [InstCombine] Try harder to simplify ~(X & Y) -> ~X | ~Y and ~(X | Y) -> ~X & ~Y when X and Y have more than one uses.
David Majnemer via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 14 11:15:41 PDT 2016
majnemer added inline comments.
================
Comment at: lib/Transforms/InstCombine/InstCombineAndOrXor.cpp:1374-1375
@@ +1373,4 @@
+
+ while (!Users.empty()) {
+ auto *InvertedUse = cast<Instruction>(Users.pop_back_val());
+ Instruction *Inst = cast<Instruction>(V);
----------------
Can't this be simplified to a range-based for loop?
http://reviews.llvm.org/D16978
More information about the llvm-commits
mailing list