aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Scalar/JumpThreading.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-09-01 17:29:10 +0000
committerEric Christopher <echristo@apple.com>2010-09-01 17:29:10 +0000
commita5d315c6651ce927fad4e39e873b117e4feb129f (patch)
tree3c4bc7cbc7de13d88503fabe04422a5b0394f0e8 /llvm/lib/Transforms/Scalar/JumpThreading.cpp
parent2bd4cee51646babc4c9f749b6c49bb0a2fdd8f98 (diff)
downloadllvm-a5d315c6651ce927fad4e39e873b117e4feb129f.zip
llvm-a5d315c6651ce927fad4e39e873b117e4feb129f.tar.gz
llvm-a5d315c6651ce927fad4e39e873b117e4feb129f.tar.bz2
Speculatively revert 112699 and 112702, they seem to be causing
self host errors on clang-x86-64. llvm-svn: 112719
Diffstat (limited to 'llvm/lib/Transforms/Scalar/JumpThreading.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/JumpThreading.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/JumpThreading.cpp b/llvm/lib/Transforms/Scalar/JumpThreading.cpp
index 5f35067..abf9886 100644
--- a/llvm/lib/Transforms/Scalar/JumpThreading.cpp
+++ b/llvm/lib/Transforms/Scalar/JumpThreading.cpp
@@ -1526,7 +1526,7 @@ bool JumpThreading::ThreadEdge(BasicBlock *BB,
// We found a use of I outside of BB. Rename all uses of I that are outside
// its block to be uses of the appropriate PHI node etc. See ValuesInBlocks
// with the two values we know.
- SSAUpdate.Initialize(I->getType(), I->getName());
+ SSAUpdate.Initialize(I);
SSAUpdate.AddAvailableValue(BB, I);
SSAUpdate.AddAvailableValue(NewBB, ValueMapping[I]);
@@ -1681,7 +1681,7 @@ bool JumpThreading::DuplicateCondBranchOnPHIIntoPred(BasicBlock *BB,
// We found a use of I outside of BB. Rename all uses of I that are outside
// its block to be uses of the appropriate PHI node etc. See ValuesInBlocks
// with the two values we know.
- SSAUpdate.Initialize(I->getType(), I->getName());
+ SSAUpdate.Initialize(I);
SSAUpdate.AddAvailableValue(BB, I);
SSAUpdate.AddAvailableValue(PredBB, ValueMapping[I]);