Displaying 2 results from an estimated 2 matches for "isbitornooppointercastable".
2015 Jan 05
3
[LLVMdev] should AlwaysInliner inline this case?
...s.cpp
+++ b/lib/Transforms/InstCombine/InstCombineCalls.cpp
@@ -1456,7 +1456,7 @@ bool
InstCombiner::transformConstExprCastCall(CallSite CS) {
Type *ParamTy = FT->getParamType(i);
Type *ActTy = (*AI)->getType();
- if (!CastInst::isBitCastable(ActTy, ParamTy))
+ if (!CastInst::isBitOrNoopPointerCastable(ActTy, ParamTy, DL))
return false; // Cannot transform this parameter value.
if (AttrBuilder(CallerPAL.getParamAttributes(i + 1), i + 1).
@@ -1551,7 +1551,7 @@ bool
InstCombiner::transformConstExprCastCall(CallSite CS) {
if ((*AI)->getType() == ParamTy) {
Args.push_bac...
2015 Jan 05
3
[LLVMdev] should AlwaysInliner inline this case?
Philip,
I post here because I think AlwaysInliner should inline it. I want to
detect the indirect calls for Inliner, and I want to hear inputs.
let me define indirect call first in my idea. In one single expression, one
function may be subject to bitcast more than one time. we can detect this
situation and treat it as a regular call of last function, is that okay?
thanks,
--lx
On Mon, Jan 5,