[PATCH] D37343: [CGP] Merge empty case blocks if no extra moves are added.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 13 12:17:40 PDT 2017


efriedma added inline comments.


================
Comment at: lib/CodeGen/CodeGenPrepare.cpp:814
+  if (HasAllUsesDominatedByPred && llvm::none_of(PNs, [BB] (PHINode *PN) {
+      return isa<ConstantInt>(PN->getIncomingValueForBlock(BB));
+      }))
----------------
Checking specifically for ConstantInt here seems a little weird... I would normally expect any constant to behave the same way.


https://reviews.llvm.org/D37343





More information about the llvm-commits mailing list