diff options
| author | Dan Gohman <gohman@apple.com> | 2007-06-05 16:05:55 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2007-06-05 16:05:55 +0000 |
| commit | 151169df1e465d7444697b18a49a49483797e762 (patch) | |
| tree | 96ec175694248bce262eeb48a49c6d52b0d8f152 /llvm/lib | |
| parent | 252695f0f60a9827bdcc6b50ae354e37159e4e75 (diff) | |
| download | bcm5719-llvm-151169df1e465d7444697b18a49a49483797e762.tar.gz bcm5719-llvm-151169df1e465d7444697b18a49a49483797e762.zip | |
Allow insertelement, extractelement, and shufflevector to be hoisted/sunk
by LICM.
llvm-svn: 37435
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LICM.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LICM.cpp b/llvm/lib/Transforms/Scalar/LICM.cpp index 1680e43fe45..8139959a265 100644 --- a/llvm/lib/Transforms/Scalar/LICM.cpp +++ b/llvm/lib/Transforms/Scalar/LICM.cpp @@ -389,7 +389,9 @@ bool LICM::canSinkOrHoistInst(Instruction &I) { // Otherwise these instructions are hoistable/sinkable return isa<BinaryOperator>(I) || isa<CastInst>(I) || - isa<SelectInst>(I) || isa<GetElementPtrInst>(I) || isa<CmpInst>(I); + isa<SelectInst>(I) || isa<GetElementPtrInst>(I) || isa<CmpInst>(I) || + isa<InsertElementInst>(I) || isa<ExtractElementInst>(I) || + isa<ShuffleVectorInst>(I); } /// isNotUsedInLoop - Return true if the only users of this instruction are |

