-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Open
Labels
Description
| Bugzilla Link | 2069 |
| Version | trunk |
| OS | Linux |
| Attachments | Poorly optimized test case (hacked up pcregrep). |
| Reporter | LLVM Bugzilla Contributor |
| CC | @nlewycky |
Extended Description
(I'm not sure whether I should consider this a bug, feedback appreciated)
On the given test file opt is significantly more effective (in terms of emmitted bytecode size) when run twice.
--
ddunbar@ozzy:lli$ llvm-as -o=- pcregrep.ll | opt --std-compile-opts | llvm-dis | wc -l
1011
ddunbar@ozzy:lli$ llvm-as -o=- pcregrep.ll | opt --std-compile-opts | opt --std-compile-opts | llvm-dis | wc -l
77
Sorry for the complexity of the test case, it is hand trimmed from an llvm built pcregrep and there is a lot of dead code in the initial test. I don't have an easy way to trim further while still reproducing the bug.