Also ran clang-format on the function. The coded added is the last else
if block.
Details
- Reviewers
filcab nadav delena craig.topper - Commits
- rGe4b482b3ed5e: Optimize shufflevector that copies an i64/f64 and zeros the rest.
rG263d98c19f97: Optimize shufflevector that copies an i64/f64 and zeros the rest.
rL208372: Optimize shufflevector that copies an i64/f64 and zeros the rest.
rL207992: Optimize shufflevector that copies an i64/f64 and zeros the rest.
Diff Detail
Event Timeline
I'm pinging this revision and properly adding Elena as a reviewer instead of a subscriber.
I mistakenly committed and reverted it, since I'm still waiting for the LGTM.
lib/Target/X86/X86ISelLowering.cpp | ||
---|---|---|
7538 | You can change the previous "if" and do not duplicate the code. But the logic is right and the optimization is very good! |
Merged the if statement into the previous statement.
RewriteAsNarrowerShuffle will now return its argument if it's a v2?64
vector.
lib/Target/X86/X86ISelLowering.cpp | ||
---|---|---|
7517 | v4i32 is covered by 128bitVector. |
v4i32 is covered by 128bitVector.
All other LGTM