projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01a76ce
)
Use Use::operator= instead of Use::set, for consistency.
author
Dan Gohman
<gohman@apple.com>
Mon, 5 Oct 2009 16:31:55 +0000
(16:31 +0000)
committer
Dan Gohman
<gohman@apple.com>
Mon, 5 Oct 2009 16:31:55 +0000
(16:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83310
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/InstructionCombining.cpp
b/lib/Transforms/Scalar/InstructionCombining.cpp
index fae8629cde62c3f288b086072db386ea9740b459..26bf27c0695aa95895ab3cac1e60ee741e66e827 100644
(file)
--- a/
lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/
lib/Transforms/Scalar/InstructionCombining.cpp
@@
-774,7
+774,7
@@
bool InstCombiner::SimplifyDemandedBits(Use &U, APInt DemandedMask,
Value *NewVal = SimplifyDemandedUseBits(U.get(), DemandedMask,
KnownZero, KnownOne, Depth);
if (NewVal == 0) return false;
- U
.set(NewVal)
;
+ U
= NewVal
;
return true;
}
@@
-12819,7
+12819,7
@@
bool InstCombiner::DoOneIteration(Function &F, unsigned Iteration) {
if (Constant *NewC = ConstantFoldConstantExpression(CE,
F.getContext(), TD))
if (NewC != CE) {
-
i->set(NewC)
;
+
*i = NewC
;
MadeIRChange = true;
}
}