Add an LSR test that exercises isTruncateFree. Without this change, LSR creates
another indvar representing the truncated value.
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/Target/NVPTX/NVPTXISelLowering.h | ||
---|---|---|
464 | I'll keep what it is. It looks clearer to me: the first check as an early return against non-integer cases, and the remaining focuses at bitwidths. It could be that we later want to consider more types of trunc free and OR the bitwdith checks together. |
I'd just && the four conditions in the 'return' statement here, would make it clearer IMHO. But it's just style so up to you