- Nov 16, 2017
-
-
Reid Kleckner authored
llvm-svn: 318355
-
Craig Topper authored
std::distance returns ptrdiff_t which is signed. 64-bit builds don't notice because type promotion widens the unsigned first. llvm-svn: 318354
-
Rong Xu authored
Due to integer precision, we might have numerator greater than denominator in the branch probability scaling. Add a check to prevent this from happening. llvm-svn: 318353
-
Daniel Sanders authored
Summary: Make it possible to feed runtime information back to tablegen to enable profile-guided tablegen-eration, detection of untested tablegen definitions, etc. Being a cross-compiler by nature, LLVM will potentially collect data for multiple architectures (e.g. when running 'ninja check'). We therefore need a way for TableGen to figure out what data applies to the backend it is generating at the time. This patch achieves that by including the name of the 'def X : Target ...' for the backend in the TargetRegistry. Reviewers: qcolombet Reviewed By: qcolombet Subscribers: jholewinski, arsenm, jyknight, aditya_nandakumar, sdardis, nemanjai, ab, nhaehnle, t.p.northover, javed.absar, qcolombet, llvm-commits, fedor.sergeev Differential Revision: https://reviews.llvm.org/D39742 llvm-svn: 318352
-
Evandro Menezes authored
Fix the modeling of FP stores. llvm-svn: 318351
-
Aditya Nandakumar authored
[GISel][NFC]: Move getOpcodeDef from the LegalizationArtifactCombiner into GlobalISel/Utils for use elsewhere llvm-svn: 318350
-
Alex Shlyapnikov authored
Summary: lsan_preinit.cc is meant to be linked into executable and calls lsan_init from .preinit_array section. But if liblsan is a shared library, then this doesn't work, because the symbol is not exported. This patch fixes that. The counterparts like asan_init or __tsan_init already do have SANITIZER_INTERFACE_ATTRIBUTE. Committing on behalf of jakubjelinek. Reviewers: alekseyshl, kcc Subscribers: llvm-commits Differential revision: https://reviews.llvm.org/D39889 llvm-svn: 318349
-
Davide Italiano authored
llvm-svn: 318348
-
NAKAMURA Takumi authored
llvm-svn: 318347
-
- Nov 15, 2017
-
-
Erich Keane authored
llvm-svn: 318345
-
Erich Keane authored
A first step toward removing the repetition of features/CPU info in the x86 target info, this patch pulls all the processor information out into its own .def file. Differential Revision: https://reviews.llvm.org/D40093 llvm-svn: 318343
-
Sanjay Patel authored
This might be the root cause of PR35295: https://bugs.llvm.org/show_bug.cgi?id=35295 llvm-svn: 318342
-
Eugene Zelenko authored
[AST, Sema] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). llvm-svn: 318341
-
Matt Arsenault authored
Use VOP3 add/addc like usual. This has some tradeoffs. Inline immediates fold a little better, but other constants are worse off. SIShrinkInstructions could be made smarter to handle these cases. This allows us to avoid selecting scalar adds where we need to track the carry in scc and replace its users. This makes it easier to use the carryless VALU adds. llvm-svn: 318340
-
Sam McCall authored
llvm-svn: 318339
-
Dan Gohman authored
Remove -switch-peel-threshold=100 and update the expected results in test10 in cfg-stackify.ll. llvm-svn: 318338
-
Sam McCall authored
(Clearly this is not a permanent solution) llvm-svn: 318337
-
Francis Ricci authored
llvm-svn: 318336
-
Evandro Menezes authored
Move remaining inline matching of instructions of some optimizations into separate functions, like in the other optimizations. Otherwise, NFC. Differential revision: https://reviews.llvm.org/D40090 llvm-svn: 318335
-
Rafael Espindola authored
This moves the file handling out of DwarfLinker.cpp. This fixes what is at least an oddity if not a bug. DwarfLinker.cpp was using ToolOutputFile, which uses RemoveFileOnSignal. The issue is that dsymutil.cpp uses that too. It is now clear from the interface that only dsymutil.cpp is responsible for creating and deleting files. llvm-svn: 318334
-
Craig Topper authored
llvm-svn: 318331
-
Craig Topper authored
llvm-svn: 318330
-
Sam McCall authored
llvm-svn: 318329
-
Marshall Clow authored
More of P0600 - '[[nodiscard]] in the Library' mark empty() as nodiscard in string, string_view, and the free function std::empty(). Removed tabs from <string_view>, which is why the diff is so big. llvm-svn: 318328
-
Sam McCall authored
llvm-svn: 318327
-
Casey Carter authored
Differential Revision: D39221 llvm-svn: 318325
-
Jake Ehrlich authored
The original -O binary implementation just copied segment data from the object and dumped it into a file. This doesn't take into account any operations performed on objects such as section removal. GNU objcopy has some specific behavior that we'd also like to respect. For instance using -O binary and -j <some_section> will dump <some_section> to a file. This change implements GNU objcopy style -O binary to as close of an approximation as I can determine. Differential Revision: https://reviews.llvm.org/D39713 llvm-svn: 318324
-
Sanjay Patel authored
Note that one-use and shouldChangeType() are checked ahead of the switch. Without the narrowing folds, we can produce inferior vector code as shown in PR35299: https://bugs.llvm.org/show_bug.cgi?id=35299 llvm-svn: 318323
-
Rafael Espindola authored
This requires a small change to TempFile: allowing a discard after a failed keep. With this the cache now handles signals and reuses a fd instead of reopening the file. llvm-svn: 318322
-
Sean Fertile authored
Implements TargetLowering callback 'mayBeEmittedAsTailCall' that enables CodeGenPrepare to duplicate returns when they might enable a tail-call. Differential Revision: https://reviews.llvm.org/D39777 llvm-svn: 318321
-
Reid Kleckner authored
InstCombine salvages debug info for every instruction it erases from its worklist, but it wasn't doing it during its initial DCE when populating its worklist. This fixes that. This should help improve availability of 'this' in optimized debug info when casts are necessary. llvm-svn: 318320
-
Sanjay Patel authored
As noted in PR35299: https://bugs.llvm.org/show_bug.cgi?id=35299 ...this is likely the root cause for a mis-vectorization transform. llvm-svn: 318319
-
Vedant Kumar authored
Thanks to arsenm and davide for the suggestion! llvm-svn: 318318
-
Ilya Biryukov authored
llvm-svn: 318317
-
Sam McCall authored
llvm-svn: 318316
-
Hans Wennborg authored
The number of 'built-in candidate' notes now varies since __float128 may or may not be a candidate depending on the target. llvm-svn: 318314
-
Marshall Clow authored
llvm-svn: 318313
-
Evandro Menezes authored
Fix the modeling of loads and stores using the pre or post indexed addressing modes. llvm-svn: 318312
-
Rafael Espindola authored
An output section can include elements from two input sections with different sh_entsize. When that happens the output section itself should not have a sh_entsize. llvm-svn: 318311
-
Rafael Espindola authored
Our current implementation of SHF_MERGE can already handle over aligned elements. llvm-svn: 318310
-