1. Fix assertions disabled builds after rL374367 (details)
  2. [Codegen] Alter the default promotion for saturating adds and subs (details)
  3. Use arrays on stack and avoid use of new and delete operators. (details)
Commit dd37a26f6d3e206e964f1d5f6e0098c079093f42 by kadircet
Fix assertions disabled builds after rL374367
llvm-svn: 374372
The file was modifiedllvm/lib/Target/BPF/BPFMISimplifyPatchable.cpp
Commit 94d379095a9c1030582a6ab9199d67d6c64a2642 by
[Codegen] Alter the default promotion for saturating adds and subs
The default promotion for the add_sat/sub_sat nodes currently does:
  1. ANY_EXTEND iN to iM
  2. SHL by M-N
  4. L/ASHR by M-N If the promoted add_sat or sub_sat node is not legal,
this can produce code that effectively does a lot of shifting (and
requiring large constants to be materialised) just to use the overflow
flag. It is simpler to just do the saturation manually, using the higher
bitwidth addition and a min/max against the saturating bounds. That is
what this patch attempts to do.
Differential Revision:
llvm-svn: 374373
The file was modifiedllvm/test/CodeGen/ARM/sadd_sat.ll
The file was modifiedllvm/test/CodeGen/AArch64/usub_sat_vec.ll
The file was modifiedllvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
The file was modifiedllvm/test/CodeGen/AArch64/uadd_sat_vec.ll
The file was modifiedllvm/test/CodeGen/AArch64/ssub_sat.ll
The file was modifiedllvm/test/CodeGen/AArch64/sadd_sat.ll
The file was modifiedllvm/test/CodeGen/X86/uadd_sat.ll
The file was modifiedllvm/test/CodeGen/ARM/usub_sat.ll
The file was modifiedllvm/test/CodeGen/AArch64/usub_sat.ll
The file was modifiedllvm/test/CodeGen/AArch64/sadd_sat_vec.ll
The file was modifiedllvm/test/CodeGen/ARM/uadd_sat.ll
The file was modifiedllvm/test/CodeGen/AArch64/ssub_sat_vec.ll
The file was modifiedllvm/test/CodeGen/AArch64/uadd_sat.ll
The file was modifiedllvm/test/CodeGen/ARM/ssub_sat.ll
The file was modifiedllvm/test/CodeGen/X86/ssub_sat.ll
The file was modifiedllvm/test/CodeGen/X86/usub_sat.ll
The file was modifiedllvm/test/CodeGen/X86/sadd_sat.ll
Commit 7a6d98325cd7463868472532391ad13122479380 by sivachandra
Use arrays on stack and avoid use of new and delete operators.
Summary: Also fix an error found with LLVM_USE_SANITIZER=Address.
Reviewers: nelhage
Subscribers: libc-commits
Tags: #libc-project
Differential Revision:
llvm-svn: 374374
The file was modifiedlibc/src/string/strcpy/strcpy_test.cpp
The file was modifiedlibc/src/string/strcat/strcat_test.cpp