Change EON pattern to match pattern after DAG reassociation.
Fixes bug PR22751 (https://llvm.org/bugs/show_bug.cgi?id=22751).
Differential D11359
[AArch64] Change EON pattern to match more often. gberry on Jul 20 2015, 9:57 AM. Authored by
Details
Change EON pattern to match pattern after DAG reassociation. Fixes bug PR22751 (https://llvm.org/bugs/show_bug.cgi?id=22751).
Diff Detail Event TimelineComment Actions The code change seems reasonable -- DAGCombine seems to canonicalise even simple examples to this form. But the tests are a little shaky:
|
This is almost certainly too weak. It'll grab the f from ".file", and even if it didn't do that it often matches the ".size complex_function_name, .Lcomplex_function_name_end0 - complex_function_name".
I usually find "CHECK-LABEL: f:" works better, colons are far less common in assembly.