This is an archive of the discontinued LLVM Phabricator instance.

[X86] Update handling in CGBuiltin to be tolerant of out of range immediates.
ClosedPublic

Authored by craig.topper on Jun 21 2018, 4:04 PM.

Details

Summary

Chandler is working changes that will loosen some of the range checks in SemaChecking to only be warning that can be disabled.

This patch adds explicit masking to avoid using the upper bits of immediates.

Diff Detail

Event Timeline

craig.topper created this revision.Jun 21 2018, 4:04 PM
craig.topper added inline comments.
lib/CodeGen/CGBuiltin.cpp
9322

This was just a place I notice where we could avoid explicitly creating the constant ourselves and rely on the other signature of CreateExtractElement.

chandlerc accepted this revision.Jun 21 2018, 4:32 PM

LGTM, thanks!

This revision is now accepted and ready to land.Jun 21 2018, 4:32 PM
craig.topper closed this revision.Jun 24 2018, 6:24 PM

Committed in r335308,