summaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/ScalarEvolutionExpander.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-04-16 15:52:57 +0000
committerDan Gohman <gohman@apple.com>2009-04-16 15:52:57 +0000
commitf04fa483b83227c570bc58e1684ea096430a6697 (patch)
tree04d7a397760db45b91706322c88bb99ec332b91e /include/llvm/Analysis/ScalarEvolutionExpander.h
parent798d3923e0c9f4d4f630ccdb92ed535631464a43 (diff)
downloadllvm-f04fa483b83227c570bc58e1684ea096430a6697.tar.gz
llvm-f04fa483b83227c570bc58e1684ea096430a6697.tar.bz2
llvm-f04fa483b83227c570bc58e1684ea096430a6697.tar.xz
Teach SCEVExpander::InsertCastOfTo to avoid creating inttoptr-of-ptrtoint
and ptrtoint-of-inttoptr expressions. This fixes a regression in 300.twolf. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69293 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/ScalarEvolutionExpander.h')
-rw-r--r--include/llvm/Analysis/ScalarEvolutionExpander.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Analysis/ScalarEvolutionExpander.h b/include/llvm/Analysis/ScalarEvolutionExpander.h
index 8126a589a4..2f660c9c5b 100644
--- a/include/llvm/Analysis/ScalarEvolutionExpander.h
+++ b/include/llvm/Analysis/ScalarEvolutionExpander.h
@@ -83,8 +83,8 @@ namespace llvm {
/// InsertCastOfTo - Insert a cast of V to the specified type, doing what
/// we can to share the casts.
- static Value *InsertCastOfTo(Instruction::CastOps opcode, Value *V,
- const Type *Ty);
+ Value *InsertCastOfTo(Instruction::CastOps opcode, Value *V,
+ const Type *Ty);
/// InsertBinop - Insert the specified binary operator, doing a small amount
/// of work to avoid inserting an obviously redundant operation.
static Value *InsertBinop(Instruction::BinaryOps Opcode, Value *LHS,