[llvm-commits] CVS: llvm/lib/Transforms/Utils/Local.cpp
Robert L. Bocchino Jr.
bocchino at persephone.cs.uiuc.edu
Tue Jan 10 11:06:28 PST 2006
Changes in directory llvm/lib/Transforms/Utils:
Local.cpp updated: 1.46 -> 1.47
---
Log message:
Added support for the extractelement operation.
---
Diffs of the changes: (+2 -0)
Local.cpp | 2 ++
1 files changed, 2 insertions(+)
Index: llvm/lib/Transforms/Utils/Local.cpp
diff -u llvm/lib/Transforms/Utils/Local.cpp:1.46 llvm/lib/Transforms/Utils/Local.cpp:1.47
--- llvm/lib/Transforms/Utils/Local.cpp:1.46 Thu Oct 27 11:34:00 2005
+++ llvm/lib/Transforms/Utils/Local.cpp Tue Jan 10 13:05:15 2006
@@ -102,6 +102,8 @@
if (Constant *Op2 = dyn_cast<Constant>(I->getOperand(2)))
return ConstantExpr::getSelect(Op0, Op1, Op2);
return 0;
+ case Instruction::ExtractElement:
+ return ConstantExpr::getExtractElement(Op0, Op1);
case Instruction::GetElementPtr:
std::vector<Constant*> IdxList;
IdxList.reserve(I->getNumOperands()-1);
More information about the llvm-commits
mailing list