Chris Lattner
13fc1eaee5
Fix buggy testcase
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7966 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-18 22:34:14 +00:00
Chris Lattner
a59f71adea
no-strict-aliasing redux
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7965 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-18 22:32:48 +00:00
Chris Lattner
c13115c633
The CBE generates code which violates the TBAA rules of C, thus we must disable
...
optimizations based on these rules. :(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7964 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-18 22:32:03 +00:00
Chris Lattner
24f83a15dd
Do not even attempt to compute dominator information for unreachable blocks
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7963 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-18 22:11:16 +00:00
Chris Lattner
fd4d8975cf
Add new methods, update comments
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7962 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-18 22:10:57 +00:00
Chris Lattner
134480cb1b
Make the testcase more interesting
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7961 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-18 21:44:10 +00:00
Chris Lattner
04aa29d7bf
Add new -disable-verify option
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7960 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-18 20:47:13 +00:00
Chris Lattner
b2d11814f9
New testcase distilled from mutt
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7959 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-18 20:19:18 +00:00
Chris Lattner
5e39b52076
Remove fixme
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7958 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-18 20:08:32 +00:00
Chris Lattner
c75b14e802
Add the magic incantations to get a running LOC graph updated each night...
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7957 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-18 20:07:54 +00:00
Chris Lattner
24eefd3f91
Add in the running LOC chart
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7956 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-18 19:59:28 +00:00
Chris Lattner
c88a4ea0d6
no really, implement it!
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7955 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-18 17:33:15 +00:00
Chris Lattner
1ddb6b61ea
Add new cleandeps target, to allow easy cleaning out of .d files
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7954 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-18 17:27:40 +00:00
Chris Lattner
74cf81919d
Add support for casting any pointer to any integer type
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7953 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-18 17:23:40 +00:00
Chris Lattner
8164d6535a
Fix linking bug in xboard
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7952 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-18 16:54:48 +00:00
Chris Lattner
72af6b8e5d
Add support for the sig(set|long)jmp intrinsics
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7951 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-18 16:06:09 +00:00
Chris Lattner
95881ec1bb
New testcase, distilled from ed-0.2
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7950 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-18 15:45:55 +00:00
Chris Lattner
8169cf810c
Add intrinsics for the llvm.sig(set|long)jmp functions
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7949 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-18 15:41:24 +00:00
Chris Lattner
f5a6ab9ff9
Wrap line at 80 columns
...
Fix bogus failures
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7947 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-18 15:11:13 +00:00
Misha Brukman
5560c9d49c
Spell `necessary' correctly.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7944 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-18 14:43:39 +00:00
Chris Lattner
00d7af60b0
Fix minor bugs in the tester
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7943 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-18 14:07:03 +00:00
Chris Lattner
bf6a4dcf2d
* Split the programs table into MultiSource and SingleSource components
...
* Instead of printing the time to configure as the build time, print the
time to configure AND the build time, explicitly
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7942 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-18 06:05:21 +00:00
Chris Lattner
e928d7dcc5
The CBE output is compiled at -O2
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7938 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-18 04:39:41 +00:00
Chris Lattner
b1adab7cb5
Add docs for new column, native tests now run with -O2
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7935 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-18 04:32:34 +00:00
Chris Lattner
c7e07aa0d6
New testcase distilled from GNU Go
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7930 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-18 02:57:31 +00:00
Chris Lattner
57c6941631
Give correct command line for making a shared object
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7929 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-17 23:38:53 +00:00
Chris Lattner
7540565863
Fix ABI issue: Longs really do need to be only 4 byte aligned on X86.
...
This bug caused miscompilation of programs using 'struct stat', but only if
compiled with support for 64-bit filesystems. This could in theory effect
other things, but only if the LLVM code shared data structures with native code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7928 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-17 23:20:40 +00:00
Chris Lattner
57e5a702d0
Make sure that "newmain" gets names for its arguments
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7927 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-17 22:14:20 +00:00
Chris Lattner
e533cefbc0
Fix message
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7926 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-17 22:08:25 +00:00
Chris Lattner
169db9d775
Fix the bug that broke the nightly tester in McCat/18-imp last night. :(
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7925 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-17 21:47:33 +00:00
Chris Lattner
e2ce618e2c
Make the check for a failed test run more robust!!
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7924 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-17 20:52:05 +00:00
Chris Lattner
10b1f5a941
Implement folding of switch instructions.
...
Implements SimplifyCFG/2003-08-17-FoldSwitch.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7923 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-17 20:21:14 +00:00
Chris Lattner
09864a1ef0
New testcase to ensure that switch folding happens correctly
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7922 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-17 20:19:31 +00:00
Chris Lattner
694e37f08a
Fix bug: SimplifyCFG/2003-08-17-BranchFoldOrdering.ll
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7921 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-17 19:41:53 +00:00
Chris Lattner
f0cd835784
New testcase
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7920 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-17 19:37:57 +00:00
Chris Lattner
342a9d1464
The fixme is irrelevant: if that happens, the LLVM bytecode is malformed.
...
This fixes testcase: SimplifyCFG/2003-08-17-BranchFold.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7919 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-17 19:34:55 +00:00
Chris Lattner
128cf79bcc
New testcase
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7918 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-17 19:29:34 +00:00
Chris Lattner
5b007e248c
This really isn't the gcc library!
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7917 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-17 18:37:45 +00:00
Chris Lattner
128c2aa493
Fix bug: Jello/2003-08-15-AllocaAssertion.ll
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7916 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-17 18:01:15 +00:00
Chris Lattner
7dd46b09c0
Fix bug: LoopPreheaders/2003-08-15-PreheadersFail.ll
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7915 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-16 20:57:16 +00:00
Chris Lattner
fd80ff55cd
No need to print in the testcase
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7914 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-16 20:56:35 +00:00
Brian Gaeke
77d2f511c0
Rename -emitmaps to -enable-maps
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7913 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-16 00:23:16 +00:00
Misha Brukman
bdfb1d83d2
`execve_test' is not part of LLEE.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7912 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-15 23:31:54 +00:00
Misha Brukman
593ece0050
A lot of changes were suggested by Chris.
...
ExecveHandler.c:
* Use "" instead of <> for LLVM include files
* Use raw I/O, we don't need buffering
* Set errno = 0 before using open()
* strlen() doesn't count NULL terminator in its size
* Use memcmp() instead of strcmp()
* Return result of the real execve(), not 0
* Search for path to bytecode file if not absolute/relative path
SysUtils.c:
* Convert all comments to C-style
* Stop using `bool', use `unsigned' instead
SysUtils.h:
* Stop using `bool', use `unsigned' instead
* Updated comment to FindExecutable()
README.txt:
* Describe the goal of LLEE and an application
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7911 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-15 23:31:16 +00:00
Chris Lattner
a1ee42ac8e
new testcase narrowed down from xboard
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7910 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-15 23:15:37 +00:00
Chris Lattner
f2d4916dc7
New testcase identified by misha, distilled from the 'ls' program
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7909 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-15 22:36:55 +00:00
Brian Gaeke
53b99a0fe7
Fix typo in comment
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7906 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-15 21:19:25 +00:00
Brian Gaeke
c48ef2ae36
lib/Support/CommandLine.cpp:
...
Many changes suggested by Chris. It's okay, I'll recover from the emotional
damage...maybe someday. :-)
Collapse ParseCStringVector into ParseStringVector. Comment it.
Make it take a const input.
Use std::string::npos instead of -1 (what a mouthful!)
Make ParseEnvironmentOptions take const inputs.
Check its args at the very beginning.
Strdup all the contents of newArgv and free them all at the end.
include/Support/CommandLine.h:
Constify progName and envVar arguments to ParseEnvironmentOptions().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7905 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-15 21:05:57 +00:00
Misha Brukman
b60fe7791e
hash_map and hash_set:
...
* Define HASH_NAMESPACE to `std' in the case of pre-3.0 GCC compilers
* Add comments to clarify the intent of all the #ifdef madness
* Add VIM directive to highlight files as C++
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7903 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-15 20:01:10 +00:00
Chris Lattner
b7dc2b9251
Remove extraneous ;'s, no functional changes
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7902 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-15 20:00:47 +00:00