[LLVMdev] PATCH: Use size reduction -- wave2
heisenbug
ggreif at gmail.com
Wed Apr 16 04:58:40 PDT 2008
>
> But: It is very simple to do your measurements yourself (and I'd love
> to hear the results!) :
>
> cd llvm
> svn switch http://llvm.org/svn/llvm-project/llvm/branches/ggreif/use-diet .
> make
>
> rebuild llvm-gcc, etc.
> retest.
>
Hmm, do not forget to revert the switch after being done:
svn switch http://llvm.org/svn/llvm-project/llvm/trunk .
Also, you will need to do these conversions to llvm-gcc:
##### tcsh script follows ######
foreach CLASS (GlobalVariable)
setenv SUBST1 "s/new $CLASS/${CLASS}::Create/g"
setenv SUBST2 "s/new llvm::$CLASS/llvm::${CLASS}::Create/g"
foreach i (`find . -name "*.cpp"`)
sed -e "$SUBST1" -e "$SUBST2" < $i > $i.2
rm $i
mv $i.2 $i
end
foreach i (`find . -name "*.h"`)
sed -e "$SUBST1" -e "$SUBST2" < $i > $i.2
rm $i
mv $i.2 $i
end
end
In one place you will have to undo the change (compiler will tell
where).
You can also experiment with removing User::U (and the related
asserts).
Cheers,
Gabor
More information about the llvm-dev
mailing list