From: Dan Gohman Date: Tue, 5 Jun 2007 16:05:55 +0000 (+0000) Subject: Allow insertelement, extractelement, and shufflevector to be hoisted/sunk X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=d8af90c1da64b81a7aa167b5adcc1e81b0741252;p=oota-llvm.git Allow insertelement, extractelement, and shufflevector to be hoisted/sunk by LICM. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37435 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/LICM.cpp b/lib/Transforms/Scalar/LICM.cpp index 1680e43fe45..8139959a265 100644 --- a/lib/Transforms/Scalar/LICM.cpp +++ b/lib/Transforms/Scalar/LICM.cpp @@ -389,7 +389,9 @@ bool LICM::canSinkOrHoistInst(Instruction &I) { // Otherwise these instructions are hoistable/sinkable return isa(I) || isa(I) || - isa(I) || isa(I) || isa(I); + isa(I) || isa(I) || isa(I) || + isa(I) || isa(I) || + isa(I); } /// isNotUsedInLoop - Return true if the only users of this instruction are