diff options
author | Anat Shemer <anat.shemer@intel.com> | 2013-04-18 19:35:39 +0000 |
---|---|---|
committer | Anat Shemer <anat.shemer@intel.com> | 2013-04-18 19:35:39 +0000 |
commit | 77e95d04c430bc849aa1898cbd820517ec0f7465 (patch) | |
tree | 0c6916f575e09647faecfb1e6e6fa397248d12b2 /lib/Transforms/InstCombine/InstCombine.h | |
parent | c0b4b6724c5887c839e236bea97016028fb5db19 (diff) | |
download | llvm-77e95d04c430bc849aa1898cbd820517ec0f7465.tar.gz llvm-77e95d04c430bc849aa1898cbd820517ec0f7465.tar.bz2 llvm-77e95d04c430bc849aa1898cbd820517ec0f7465.tar.xz |
Added a function scalarizePHI() that sclarizes a vector phi instruction if it has only 2 uses: one to promote the vector phi in a loop and the other use is an extract operation of one element at a constant location.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179783 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/InstCombine/InstCombine.h')
-rw-r--r-- | lib/Transforms/InstCombine/InstCombine.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/InstCombine/InstCombine.h b/lib/Transforms/InstCombine/InstCombine.h index 1f6a3a5e33..2a36074750 100644 --- a/lib/Transforms/InstCombine/InstCombine.h +++ b/lib/Transforms/InstCombine/InstCombine.h @@ -233,6 +233,7 @@ private: Instruction *transformSExtICmp(ICmpInst *ICI, Instruction &CI); bool WillNotOverflowSignedAdd(Value *LHS, Value *RHS); Value *EmitGEPOffset(User *GEP); + Instruction *scalarizePHI(ExtractElementInst &EI, PHINode *PN); public: // InsertNewInstBefore - insert an instruction New before instruction Old |