From d8af90c1da64b81a7aa167b5adcc1e81b0741252 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 5 Jun 2007 16:05:55 +0000 Subject: [PATCH] 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 --- lib/Transforms/Scalar/LICM.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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