summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
diff options
context:
space:
mode:
authorGuozhi Wei <carrot@google.com>2016-03-17 18:47:20 +0000
committerGuozhi Wei <carrot@google.com>2016-03-17 18:47:20 +0000
commit7b390ec4cde7b4d1dc05a55412f53010ef16dfff (patch)
treef97544f513b5ff23970a67df0da3fb01103f656a /llvm/lib/Transforms/InstCombine/InstCombineInternal.h
parentc9058ca9e0da946ea19f332c48a1406e6c2f4985 (diff)
downloadbcm5719-llvm-7b390ec4cde7b4d1dc05a55412f53010ef16dfff.tar.gz
bcm5719-llvm-7b390ec4cde7b4d1dc05a55412f53010ef16dfff.zip
[InstCombine] Combine A->B->A BitCast
This patch enhances InstCombine to handle following case: A -> B bitcast PHI B -> A bitcast llvm-svn: 263734
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineInternal.h')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineInternal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
index 3bb50baa663..b1e3881c75f 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
+++ b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
@@ -394,6 +394,7 @@ private:
Instruction *scalarizePHI(ExtractElementInst &EI, PHINode *PN);
Value *EvaluateInDifferentElementOrder(Value *V, ArrayRef<int> Mask);
Instruction *foldCastedBitwiseLogic(BinaryOperator &I);
+ Instruction *optimizeBitCastFromPhi(CastInst &CI, PHINode *PN);
public:
/// \brief Inserts an instruction \p New before instruction \p Old
OpenPOWER on IntegriCloud