[PATCH] Switch To Select optimization , fixed case with multiple incoming edges from same block
Marcello Maggioni
hayarms at gmail.com
Sun Oct 12 17:01:28 PDT 2014
================
Comment at: lib/Transforms/Utils/SimplifyCFG.cpp:3575
@@ +3574,3 @@
+ BasicBlock *SelectBB = SI->getParent();
+ while (PHI->getBasicBlockIndex(SelectBB) >= 0)
+ PHI->removeIncomingValue(SelectBB);
----------------
This is the only thing that changed from the previous patch, with this becoming a "while" from an "if"
http://reviews.llvm.org/D5746
More information about the llvm-commits
mailing list