summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2011-05-18 14:57:56 +0000
committerDuncan Sands <baldrick@free.fr>2011-05-18 14:57:56 +0000
commit3d9407f4eb36a4fb4986686e636e896d261e97bf (patch)
tree9b410c2553bb1665e8b1cc3e197e4e373425caa7 /llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp
parentc5c27ede5501bde34ef0f1428ca74bfe5f46a5bd (diff)
downloadbcm5719-llvm-3d9407f4eb36a4fb4986686e636e896d261e97bf.tar.gz
bcm5719-llvm-3d9407f4eb36a4fb4986686e636e896d261e97bf.zip
Revert commit 131534 since it seems to have broken several buildbots.
Original log entry: Refactor getActionType and getTypeToTransformTo ; place all of the 'decision' code in one place. llvm-svn: 131536
Diffstat (limited to 'llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp b/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp
index 6c62010f43a..01843901855 100644
--- a/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp
+++ b/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp
@@ -371,9 +371,9 @@ static bool OptimizeNoopCopyExpression(CastInst *CI, const TargetLowering &TLI){
// If these values will be promoted, find out what they will be promoted
// to. This helps us consider truncates on PPC as noop copies when they
// are.
- if (TLI.getTypeAction(CI->getContext(), SrcVT) == TargetLowering::Promote)
+ if (TLI.getTypeAction(SrcVT) == TargetLowering::Promote)
SrcVT = TLI.getTypeToTransformTo(CI->getContext(), SrcVT);
- if (TLI.getTypeAction(CI->getContext(), DstVT) == TargetLowering::Promote)
+ if (TLI.getTypeAction(DstVT) == TargetLowering::Promote)
DstVT = TLI.getTypeToTransformTo(CI->getContext(), DstVT);
// If, after promotion, these are the same types, this is a noop copy.
OpenPOWER on IntegriCloud