X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=lib%2FTransforms%2FInstCombine%2FInstCombineCasts.cpp;h=c2b862a5ff303688dbab6c1b81046302558329fa;hp=811a6ac2f21717878f109f1cb5fb6a6fbb6ad9ea;hb=36b699f2b139a30a2dfa4448223d6985b55daa8a;hpb=b033b03c23fb3ae066937b2ec09eb9d7a3f1d522 diff --git a/lib/Transforms/InstCombine/InstCombineCasts.cpp b/lib/Transforms/InstCombine/InstCombineCasts.cpp index 811a6ac2f21..c2b862a5ff3 100644 --- a/lib/Transforms/InstCombine/InstCombineCasts.cpp +++ b/lib/Transforms/InstCombine/InstCombineCasts.cpp @@ -757,7 +757,7 @@ static bool CanEvaluateZExtd(Value *V, Type *Ty, unsigned &BitsToClear) { Instruction *InstCombiner::visitZExt(ZExtInst &CI) { // If this zero extend is only used by a truncate, let the truncate be // eliminated before we try to optimize this zext. - if (CI.hasOneUse() && isa(CI.use_back())) + if (CI.hasOneUse() && isa(CI.user_back())) return 0; // If one of the common conversion will work, do it. @@ -1038,7 +1038,7 @@ static bool CanEvaluateSExtd(Value *V, Type *Ty) { Instruction *InstCombiner::visitSExt(SExtInst &CI) { // If this sign extend is only used by a truncate, let the truncate be // eliminated before we try to optimize this sext. - if (CI.hasOneUse() && isa(CI.use_back())) + if (CI.hasOneUse() && isa(CI.user_back())) return 0; if (Instruction *I = commonCastTransforms(CI))