[llvm-commits] [llvm] r78350 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
Chris Lattner
clattner at apple.com
Thu Aug 6 22:21:50 PDT 2009
On Aug 6, 2009, at 3:45 PM, Dale Johannesen wrote:
> Author: johannes
> Date: Thu Aug 6 17:45:51 2009
> New Revision: 78350
>
> URL: http://llvm.org/viewvc/llvm-project?rev=78350&view=rev
> Log:
> Use stripPointerCasts instead of partially rewriting it.
Nice!
-Chris
>
>
> Modified:
> llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
>
> Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp?rev=78350&r1=78349&r2=78350&view=diff
>
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
> (original)
> +++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp Thu
> Aug 6 17:45:51 2009
> @@ -5137,10 +5137,8 @@
> // BasicBlocks are labels, currently appearing only in asm's.
> if (OpInfo.CallOperandVal) {
> // Strip bitcasts, if any. This mostly comes up for functions.
> - ConstantExpr* CE = NULL;
> - while ((CE = dyn_cast<ConstantExpr>(OpInfo.CallOperandVal)) &&
> - CE->getOpcode()==Instruction::BitCast)
> - OpInfo.CallOperandVal = CE->getOperand(0);
> + OpInfo.CallOperandVal = OpInfo.CallOperandVal-
> >stripPointerCasts();
> +
> if (BasicBlock *BB = dyn_cast<BasicBlock>
> (OpInfo.CallOperandVal)) {
> OpInfo.CallOperand = DAG.getBasicBlock(FuncInfo.MBBMap[BB]);
> } else {
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list