On Apr 28, 2007, at 1:01 PM, Anton Korobeynikov wrote: >> I'd suggest: && isa<GlobalValue>(CE->getOperand(0)) > So, nobody will produce multiple bitcasts, right? > e.g. this is illegal: > @A = alias (bitcast (bitcast i64* @foo to i8*) to i32*
Right, ConstantExpr::getBitCast will fold those. Try doing llvm-as | llvm-dis and the output should have them folded. -Chris _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits