Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attributor may attempt to truncate a smaller value to a larger one #50799

Closed
jdoerfert opened this issue Aug 12, 2021 · 3 comments
Closed

Attributor may attempt to truncate a smaller value to a larger one #50799

jdoerfert opened this issue Aug 12, 2021 · 3 comments
Labels
bugzilla Issues migrated from bugzilla ipo Interprocedural optimizations

Comments

@jdoerfert
Copy link
Member

Bugzilla Link 51457
Resolution FIXED
Resolved on Oct 11, 2021 20:29
Version trunk
OS Linux
Blocks #51489
Fixed by commit(s) 5f54391 24d8b65

Extended Description

While casting constants we did not explicitly check if the types were larger before calling CreateTrunc, this crashed:

store i32 42, i32* @​bytes2
%bc = bitcast i32* @​bytes2 to i64*
%l = load i64, i64* %bc

@jdoerfert
Copy link
Member Author

@​Tom can we backport this, please.
Small change but can actually happen for OpenMP codes by default (O1 and higher)

@tstellar
Copy link
Collaborator

Merged: 24d8b65

@tstellar
Copy link
Collaborator

mentioned in issue #51489

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 11, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla ipo Interprocedural optimizations
Projects
None yet
Development

No branches or pull requests

2 participants