Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
visitSExt is an adapted copy of the related visitZExt method, so adapt the comment accordingly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175019 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Arnaud-de-Grandmaison committed Feb 13, 2013
1 parent 49b5bb4 commit 66bff1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Transforms/InstCombine/InstCombineCasts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1041,8 +1041,8 @@ 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 by
// eliminated before we try to optimize this zext.
// 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<TruncInst>(CI.use_back()))
return 0;

Expand Down

0 comments on commit 66bff1e

Please sign in to comment.