[llvm-commits] [llvm] r83310 - /llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp

Dan Gohman gohman at apple.com
Mon Oct 5 09:31:55 PDT 2009


Author: djg
Date: Mon Oct  5 11:31:55 2009
New Revision: 83310

URL: http://llvm.org/viewvc/llvm-project?rev=83310&view=rev
Log:
Use Use::operator= instead of Use::set, for consistency.

Modified:
    llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp?rev=83310&r1=83309&r2=83310&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp Mon Oct  5 11:31:55 2009
@@ -774,7 +774,7 @@
   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 @@
           if (Constant *NewC = ConstantFoldConstantExpression(CE,   
                                   F.getContext(), TD))
             if (NewC != CE) {
-              i->set(NewC);
+              *i = NewC;
               MadeIRChange = true;
             }
     }





More information about the llvm-commits mailing list