- Sep 12, 2012
-
-
Alexander Potapenko authored
Fix a warning in macros instantiation. llvm-svn: 163716
-
Roman Divacky authored
was fixed in r163713. llvm-svn: 163715
-
Alexander Potapenko authored
llvm-svn: 163714
-
Roman Divacky authored
This patch corrects logic in PPCFrameLowering for save and restore of nonvolatile condition register fields across calls under the SVR4 ABIs. * With the 64-bit ABI, the save location is at a fixed offset of 8 from the stack pointer. The frame pointer cannot be used to access this portion of the stack frame since the distance from the frame pointer may change with alloca calls. * With the 32-bit ABI, the save location is just below the general register save area, and is accessed via the frame pointer like the rest of the save areas. This is an optional slot, so it must only be created if any of CR2, CR3, and CR4 were modified. * For both ABIs, save/restore logic is generated only if one of the nonvolatile CR fields were modified. I also took this opportunity to clean up an extra FIXME in PPCFrameLowering.h. Save area offsets for 32-bit GPRs are meaningless for the 64-bit ABI, so I removed them for correctness and efficiency. Fixes PR13708 and partially also PR13623. It lets us enable exception handling on PPC64. Patch by William J. Schmidt! llvm-svn: 163713
-
Filipe Cabecinhas authored
llvm-svn: 163712
-
Roman Divacky authored
llvm-svn: 163710
-
NAKAMURA Takumi authored
llvm-svn: 163709
-
NAKAMURA Takumi authored
clang/test/CodeGen/2008-01-25-ZeroSizedAggregate.c: [PR8833] Add REQUIRES: LP64. It fails with +Asserts for Win64. llvm-svn: 163708
-
Alexander Potapenko authored
Fix compiler warnings: remove __attribute__((visibility)) for static functions, use unsigned char instead of char. llvm-svn: 163707
-
Alexey Samsonov authored
llvm-svn: 163706
-
Joerg Sonnenberger authored
active. llvm-svn: 163705
-
Alexey Samsonov authored
llvm-svn: 163704
-
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
-