-
Notifications
You must be signed in to change notification settings - Fork 69
Make black_box
a no-op
#363
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
base: main
Are you sure you want to change the base?
Conversation
d689ea2
to
729aacb
Compare
// Preserve both elements by spilling + reloading | ||
OperandValue::Pair(..) => { | ||
let tmp = self.alloca(layout.size, layout.align.abi); | ||
self.store(args[0].immediate(), tmp, layout.align.abi); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The implementation of args[0].immediate()
is guaranteed to panic, see my latest additions to the test ICE-ing:
pub fn immediate(self) -> V {
match self.val {
OperandValue::Immediate(s) => s,
_ => bug!("not immediate: {:?}", self),
}
}
Our ABI takes apart ScalarPairs into an Adt(a, b)
, but only if the ScalarPair consists out of two non-ZST fields. I have no idea how to correctly load / store ScalarPairs, especially given that condition. Maybe @eddyb can help us here?
BackendRepr::ScalarPair(a, b) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I've been feeling around in the dark, no clue here.
Part of #312