[PATCH] D46343: [CFLGraph] Fixed Select instruction handling
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 3 16:09:55 PDT 2018
xbolva00 updated this revision to Diff 145112.
https://reviews.llvm.org/D46343
Files:
lib/Analysis/CFLGraph.h
Index: lib/Analysis/CFLGraph.h
===================================================================
--- lib/Analysis/CFLGraph.h
+++ lib/Analysis/CFLGraph.h
@@ -541,6 +541,12 @@
break;
}
+ case Instruction::Select: {
+ addAssignEdge(CE->getOperand(1), CE);
+ addAssignEdge(CE->getOperand(2), CE);
+ break;
+ }
+
case Instruction::InsertElement:
case Instruction::InsertValue: {
addAssignEdge(CE->getOperand(0), CE);
@@ -573,7 +579,6 @@
case Instruction::AShr:
case Instruction::ICmp:
case Instruction::FCmp:
- case Instruction::Select:
case Instruction::ShuffleVector: {
addAssignEdge(CE->getOperand(0), CE);
addAssignEdge(CE->getOperand(1), CE);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46343.145112.patch
Type: text/x-patch
Size: 768 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180503/e7bc79fe/attachment.bin>
More information about the llvm-commits
mailing list