Skip to content

Commit

Permalink
[CodeGenPrepare] Fix a typo in the comment. NFC.
Browse files Browse the repository at this point in the history
encode => endcode.

Differential Revision: https://reviews.llvm.org/D28866

llvm-svn: 292438
  • Loading branch information
Haicheng Wu committed Jan 18, 2017
1 parent fe4890a commit 8ce2d14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/CodeGen/CodeGenPrepare.cpp
Expand Up @@ -4255,7 +4255,7 @@ static bool hasSameExtUse(Instruction *Inst, const TargetLowering &TLI) {
/// %ld = load i32* %addr
/// %zext = zext i32 %ld to i64
/// %add = add nuw i64 %zext, 4
/// \encode
/// \endcode
/// Thanks to the promotion, we can match zext(load i32*) to i64.
bool CodeGenPrepare::extLdPromotion(TypePromotionTransaction &TPT,
LoadInst *&LI, Instruction *&Inst,
Expand Down

0 comments on commit 8ce2d14

Please sign in to comment.