Go to file
Chris Lattner cbeda87da1 add a fastpath to ConstantExpr::getBitCast to handle the case when an obviously
unneeded bitcast is requested.  This is common for frontends who just unconditionally
cast even if the target is often the right type already.  THis prevents going into
getFoldedCast which switches on the opcode and does a bunch of other stuff before
doing the same opzn.

llvm-svn: 67435
2009-03-21 06:55:54 +00:00
clang avoid making constant folding logic eliminate obviously dead bitcasts, speeding up PR3810 2009-03-21 06:53:34 +00:00
llvm add a fastpath to ConstantExpr::getBitCast to handle the case when an obviously 2009-03-21 06:55:54 +00:00