[PATCH] D29711: [globalisel] Sort RuleMatchers by priority.
Ahmed Bougacha via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 8 18:41:37 PST 2017
ab added inline comments.
================
Comment at: utils/TableGen/GlobalISelEmitter.cpp:224-230
+ // Wider types should have priority over narrower types within the same
+ // family but the order of the families doesn't matter. So s64 is more
+ // important than s32 and f64 is more important than f32 but s64 and f64 are
+ // unordered.
+ // FIXME: Don't do a lexical comparison of the type name. Check the size
+ // instead. This only works for the cases we emit so far and is only
+ // done this way because we can't delve into LLT's yet.
----------------
Huh, how can this be a problem?
https://reviews.llvm.org/D29711
More information about the llvm-commits
mailing list