[PATCH] D46343: [CFLGraph] Fixed Select instruction handling
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 10 04:51:15 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL331976: [CFLGraph] Fixed Select instruction handling (authored by xbolva00, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D46343?vs=145112&id=146114#toc
Repository:
rL LLVM
https://reviews.llvm.org/D46343
Files:
llvm/trunk/lib/Analysis/CFLGraph.h
Index: llvm/trunk/lib/Analysis/CFLGraph.h
===================================================================
--- llvm/trunk/lib/Analysis/CFLGraph.h
+++ llvm/trunk/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.146114.patch
Type: text/x-patch
Size: 801 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180510/1183a3fd/attachment.bin>
More information about the llvm-commits
mailing list