This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] [NFC] Use a pattern matcher for ExtractElementInst.
ClosedPublic

Authored by Chenbing.Zheng on May 18 2022, 12:41 AM.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptMay 18 2022, 12:41 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
Chenbing.Zheng requested review of this revision.May 18 2022, 12:41 AM
RKSimon accepted this revision.May 18 2022, 3:17 AM

LGTM

This revision is now accepted and ready to land.May 18 2022, 3:17 AM
Chenbing.Zheng requested review of this revision.EditedMay 18 2022, 7:43 PM
Chenbing.Zheng added a reviewer: rampitec.
Chenbing.Zheng added a subscriber: rampitec.

I think this is a nfc patch, but I find there are two failed tests AMDGPU::vector-alloca-bitcast.ll and AMDGPU::vector-alloca.ll. I do not have an AMDGPU machine, so I can not debug it.

I got it, Index may be a variable,use m_value() instead of m_ConstantInt().

This revision is now accepted and ready to land.May 19 2022, 9:55 AM
This revision was landed with ongoing or failed builds.May 19 2022, 7:32 PM
This revision was automatically updated to reflect the committed changes.