From b77b12aa8af66be76a9be10d095eea956dcd27d0 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 6 May 2014 16:39:47 -0700 Subject: avoid unneeded |0 now that we >>0 HEAP8 accesses --- lib/Target/JSBackend/CallHandlers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/JSBackend/CallHandlers.h b/lib/Target/JSBackend/CallHandlers.h index 6238251637..e14a0a3fab 100644 --- a/lib/Target/JSBackend/CallHandlers.h +++ b/lib/Target/JSBackend/CallHandlers.h @@ -342,7 +342,7 @@ DEF_CALL_HANDLER(llvm_memset_p0i8_i32, { if (Factor <= UNROLL_LOOP_MAX) { // unroll for (unsigned Offset = 0; Offset < CurrLen; Offset += Align) { - std::string Add = "+" + utostr(Pos + Offset) + (Align == 1 ? "|0" : ""); + std::string Add = "+" + utostr(Pos + Offset); Ret += ";" + getHeapAccess(Dest + Add, Align) + "=" + utostr(FullVal) + "|0"; } } else { -- cgit v1.2.3-18-g5258