This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] Handle constant zero bits in BitPermutationSelector
ClosedPublic

Authored by nemanjai on Dec 31 2019, 11:44 AM.

Details

Summary

We currently crash when analyzing an AssertZExt node that has some bits that are constant zeros (i.e. as a result of an and with a constant).

This issue was reported in https://bugs.llvm.org/show_bug.cgi?id=41088 and this patch fixes that.

Diff Detail

Event Timeline

nemanjai created this revision.Dec 31 2019, 11:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 31 2019, 11:44 AM

Unit tests: pass. 61162 tests passed, 0 failed and 728 were skipped.

clang-tidy: fail. Please fix clang-tidy findings.

clang-format: fail. Please format your changes with clang-format by running git-clang-format HEAD^ or applying this patch.

Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml

nemanjai updated this revision to Diff 235727.Dec 31 2019, 12:09 PM

Run git-clang-format.
I don't want to address the clang-tidy check results as I don't really want to change the induction variable from i to I. The former is ubiquitous.

Unit tests: pass. 61163 tests passed, 0 failed and 728 were skipped.

clang-tidy: fail. Please fix clang-tidy findings.

clang-format: pass.

Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml

hfinkel accepted this revision as: hfinkel.Dec 31 2019, 6:16 PM

LGTM

This revision is now accepted and ready to land.Dec 31 2019, 6:16 PM
This revision was automatically updated to reflect the committed changes.