llvm-6502/utils
Chris Lattner 39e73f7c83 Special case tblgen generated code for patterns like (and X, 255) or (or X, 42).
The dag/inst combiners often 'simplify' the masked value based on whether
or not the bits are live or known zero/one.  This is good and dandy, but
often causes special case patterns to fail, such as alpha's CMPBGE pattern,
which looks like "(set GPRC:$RC, (setuge (and GPRC:$RA, 255), (and GPRC:$RB, 255)))".
Here the pattern for (and X, 255) should match actual dags like (and X, 254) if
the dag combiner proved that the missing bits are already zero (one for 'or').

For CodeGen/Alpha/cmpbge.ll:test2 for example, this results in:

        sll $16,1,$0
        cmpbge $0,$17,$0
        ret $31,($26),1

instead of:

        sll $16,1,$0
        and $0,254,$0
        and $17,255,$1
        cmpule $1,$0,$0
        ret $31,($26),1

... and requires no target-specific code.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30871 91177308-0d34-0410-b5e6-96231b3b80d8
2006-10-11 04:05:55 +00:00
..
emacs
fpcmp
PerfectShuffle
TableGen Special case tblgen generated code for patterns like (and X, 255) or (or X, 42). 2006-10-11 04:05:55 +00:00
vim Remove blank line at end of file, removing test user "foo" from CVS history. 2006-08-11 19:42:11 +00:00
cgiplotNLT.pl
check-each-file
codegen-diff
countloc.sh Make all tools that use llvmdo have a -topdir option that allows the top 2006-08-14 18:49:05 +00:00
cvsupdate
DSAclean.py
DSAextract.py
findsym.pl Fix a comment. 2006-08-09 19:40:13 +00:00
GenLibDeps.pl Print an error message if the lib directory (first argument) is not a 2006-08-03 19:10:03 +00:00
getsrcs.sh Simplify this a little bit. 2006-08-15 03:50:10 +00:00
importNLT.pl
llvm-native-gcc
llvm-native-gxx
llvmdo Make all tools that use llvmdo have a -topdir option that allows the top 2006-08-14 18:49:05 +00:00
llvmgrep This script takes arguments so remove the check for number of arguments, 2006-08-15 03:48:22 +00:00
Makefile
makellvm
NewNightlyTest.pl Wrong directory. 2006-09-29 17:31:45 +00:00
NightlyTest.gnuplot
NightlyTestTemplate.html
NLT.schema
OldenDataRecover.pl
parseNLT.pl
plotNLT.pl
profile.pl
RegressionFinder.pl
userloc.pl Make all tools that use llvmdo have a -topdir option that allows the top 2006-08-14 18:49:05 +00:00
webNLT.pl