This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Teach getDemandedBitsLHSMask to handle constant splat vectors
ClosedPublic

Authored by craig.topper on Sep 20 2017, 2:31 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

craig.topper created this revision.Sep 20 2017, 2:31 PM
spatel accepted this revision.Sep 20 2017, 2:55 PM

LGTM.

lib/Transforms/InstCombine/InstCombineCompares.cpp
3939–3940 ↗(On Diff #116076)

Could squash the unnecessary local variable into the return statement to eliminate the lowercase variable violation and remove the braces.

This revision is now accepted and ready to land.Sep 20 2017, 2:55 PM
This revision was automatically updated to reflect the committed changes.