This is an archive of the discontinued LLVM Phabricator instance.

[Codegen][ReplaceWithVecLib] Fix pow intrinsics in ReplaceWithVecLib pass
Needs ReviewPublic

Authored by ttjost on Feb 9 2022, 9:55 AM.

Details

Summary

This patch fixes the replacement of pow intrinsics
by its vector library implementation.

Function Intrinsic::getName was being called with
a wrong set of arguments. This prevented TargetLibraryInfo
from getting the right name for the vectorized version of pow
for different library implementations.

Diff Detail

Event Timeline

ttjost created this revision.Feb 9 2022, 9:55 AM
ttjost requested review of this revision.Feb 9 2022, 9:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 9 2022, 9:55 AM
ttjost updated this revision to Diff 407499.Feb 10 2022, 5:35 AM

Bot failed for some tests. This new update fixes them.

ttjost updated this revision to Diff 407853.Feb 11 2022, 5:52 AM

Fixes assert in Debug mode.