- Sep 12, 2012
-
-
Kristof Beyls authored
Fix constant folding through bitcasts by no longer relying on undefined behaviour (converting NaN values between float and double). SelectionDAG::getConstantFP(double Val, EVT VT, bool isTarget); should not be used when Val is not a simple constant (as the comment in SelectionDAG.h indicates). This patch avoids using this function when folding an unknown constant through a bitcast, where it cannot be guaranteed that Val will be a simple constant. llvm-svn: 163703
-
Nadav Rotem authored
Add a flag to disable the code that looks for allocas which escaped the lifetime regions. This is useful for debugging. No testcase because without this check we fail on assertions when finding escaped allocas. llvm-svn: 163702
-
NAKAMURA Takumi authored
llvm-svn: 163701
-
NAKAMURA Takumi authored
llvm-svn: 163700
-
NAKAMURA Takumi authored
I think some of them could be rewritten to fit also LLP64. llvm-svn: 163699
-
Alexey Samsonov authored
llvm-svn: 163698
-
NAKAMURA Takumi authored
%t.h might be touched by scanners as a hot file on Windows, to fail to remove %.h with single run. llvm-svn: 163697
-
NAKAMURA Takumi authored
llvm-svn: 163696
-
James Molloy authored
Add a function computeRegisterLiveness() to MachineBasicBlock. This uses analyzePhysReg() from r163694 to heuristically try and determine the liveness state of a physical register upon arrival at a particular instruction in a block. The search for liveness is clipped to a specific number of instructions around the target MachineInstr, in order to avoid degenerating into an O(N^2) algorithm. It tries to use various clues about how instructions around (both before and after) a given MachineInstr use that register, to determine its state at the MachineInstr. llvm-svn: 163695
-
James Molloy authored
Add an analyzePhysReg() function to MachineOperandIteratorBase that analyses an instruction's use of a physical register, analogous to analyzeVirtReg. Rename RegInfo to VirtRegInfo so as not to be confused with the new PhysRegInfo. llvm-svn: 163694
-
Duncan Sands authored
was printing a newline that doesn't occur when printing other kinds of LLVM values. Move the printing of that newline elsewhere, making globals print the same as other values while leaving the output when printing an entire module unchanged. Patch by Saša Tomić. llvm-svn: 163693
-
Alexey Samsonov authored
llvm-svn: 163692
-
Evgeniy Stepanov authored
llvm-svn: 163691
-
Alexander Potapenko authored
This is required to overcome a crash in mstats() (http://code.google.com/p/address-sanitizer/issues/detail?id=109) llvm-svn: 163690
-
Evgeniy Stepanov authored
llvm-svn: 163689
-
Alexey Samsonov authored
llvm-svn: 163688
-
Nadav Rotem authored
llvm-svn: 163687
-
Alexey Samsonov authored
llvm-svn: 163686
-
Lang Hames authored
findLastUseBefore was previous considering virtreg liveness only, leading to incorrect live intervals for reg units when instrs with physreg operands were moved up. llvm-svn: 163685
-
Ted Kremenek authored
llvm-svn: 163684
-
Ted Kremenek authored
were not emitted. Fixes <rdar://problem/12280665>. llvm-svn: 163683
-
Craig Topper authored
llvm-svn: 163682
-
Ted Kremenek authored
for halting the propagation of uninitialized value tracking along a path. Unlike __attribute__((noreturn)), this attribute (which is used by clients of the static analyzer) can be used to annotate functions that essentially never return, but in rare cares may be allowed to return for (special) debugging purposes. This attribute has been shown in reducing false positives in the static analyzer by pruning false postives, and is equally applicable here. Handling this attribute in the CFG itself is another option, but this is not something all clients (e.g., possibly -Wunreachable-code) would want to see. Addresses <rdar://problem/12281583>. llvm-svn: 163681
-
Ted Kremenek authored
llvm-svn: 163680
-
Manman Ren authored
"#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)" No functional change. Update r163344. llvm-svn: 163679
-
Nadav Rotem authored
The input program may contain intructions which are not inside lifetime markers. This can happen due to a bug in the compiler or due to a bug in user code (for example, returning a reference to a local variable). This commit adds checks that all of the instructions in the function and invalidates lifetime ranges which do not contain all of the instructions. llvm-svn: 163678
-
rdar://problem/11374963Greg Clayton authored
Partial fix for the above radar where we now resolve dsym mach-o files within the dSYM bundle when using "add-dsym" through the platform. llvm-svn: 163676
-
Greg Clayton authored
llvm-svn: 163675
-
Chandler Carruth authored
'Inputs' subdirectory. The general desire has been to have essentially all of the non-test input files live in such directories, with some exceptions for obvious and common patterns like 'foo.c' using 'foo.h'. This came up because our distributed test runner couldn't find some of the headers, for example with stl.cpp. No functionality changed, just shuffling around here. llvm-svn: 163674
-
Chandler Carruth authored
llvm-svn: 163673
-
Richard Smith authored
parameter packs where the reference is not being expanded but the pack has been. Previously, Clang would segfault in such cases. llvm-svn: 163672
-
Greg Clayton authored
Added some documentation and an accessor for the target with an explanation of why to not use "lldb.target". llvm-svn: 163671
-
Jim Ingham authored
llvm-svn: 163670
-
Jim Ingham authored
llvm-svn: 163669
-
Eric Christopher authored
args where it should (implicit first arguments). FileCheck-ize a test as well and update tests to take into account the object pointer flag. rdar://9797999 llvm-svn: 163668
-
Eric Christopher authored
Part of rdar://9797999 llvm-svn: 163667
-
Chad Rosier authored
[ms-inline asm] isDef/NumDefs in this context only refer to register definitions, not memory definitions. llvm-svn: 163666
-
Chad Rosier authored
llvm-svn: 163665
-
Owen Anderson authored
Improve tblgen code cleanliness: create an unknown_class, from which the unknown def inherits. Make tblgen check for that class, rather than checking for the def itself. llvm-svn: 163664
-
Owen Anderson authored
Compute a map from register names to registers, rather than scanning the list of registers every time we want to look up a register by name. llvm-svn: 163659
-