Details
Details
- Reviewers
majnemer
Diff Detail
Diff Detail
Event Timeline
Comment Actions
I think that most of this looks good, except as noted below...
lib/Transforms/InstCombine/InstCombineCasts.cpp | ||
---|---|---|
1423 | I think this should be done in DAGCombine. It is not clear to me that this is always beneficial nor does it clearly make a useful canonical form. I think we should canonicalize the other way: it seems simpler. |
Comment Actions
I only did this to keep what it was already doing for the libcall. Should I just rip out all of those tests and drop this?
Comment Actions
DAGCombiner does something similar and more interesting because it can mismatch the source types.
If I drop this all of the interesting tested cases work if I drop that part, except for test19 in float-shrink-compare (added by D6495, which apparently was a reported bug). I could special case this in the fcmp handling
I think this should be done in DAGCombine. It is not clear to me that this is always beneficial nor does it clearly make a useful canonical form. I think we should canonicalize the other way: it seems simpler.