[llvm-commits] [dragonegg] r126649 - /dragonegg/trunk/llvm-convert.cpp
Duncan Sands
baldrick at free.fr
Mon Feb 28 04:13:25 PST 2011
Author: baldrick
Date: Mon Feb 28 06:13:25 2011
New Revision: 126649
URL: http://llvm.org/viewvc/llvm-project?rev=126649&view=rev
Log:
If a register input is smaller than a tied output then we extend
the input to the type of the output, and on big endian machines
perform a shift on the extended value. This shift doesn't make
any sense to me, so remove it. Note that clang does not perform
a shift in its corresponding logic.
Modified:
dragonegg/trunk/llvm-convert.cpp
Modified: dragonegg/trunk/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/llvm-convert.cpp?rev=126649&r1=126648&r2=126649&view=diff
==============================================================================
--- dragonegg/trunk/llvm-convert.cpp (original)
+++ dragonegg/trunk/llvm-convert.cpp Mon Feb 28 06:13:25 2011
@@ -7092,11 +7092,6 @@
}
Op = CastToAnyType(Op, IsSigned, OTy,
CallResultTypes[OutputIndex].second);
- if (BYTES_BIG_ENDIAN) {
- Constant *ShAmt = ConstantInt::get(Op->getType(),
- OTyBits-OpTyBits);
- Op = Builder.CreateLShr(Op, ShAmt);
- }
}
}
}
More information about the llvm-commits
mailing list