Commit 6a669221 by Nicolas Capens Committed by Nicolas Capens

Remove invalid assert.

Subzero x86-64 call instruction operands can be 64-bit now and require a register. Bug chromium:860533 Change-Id: I4446be34f57ef73e24718252210bdaa81995c8be Reviewed-on: https://swiftshader-review.googlesource.com/19848Tested-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarCorentin Wallez <cwallez@google.com>
parent 6a990f8b
......@@ -7997,9 +7997,8 @@ Operand *TargetX86Base<TraitsType>::legalize(Operand *From, LegalMask Allowed,
// - Mem is not allowed and Var isn't guaranteed a physical register, or
// - RegNum is required and Var->getRegNum() doesn't match, or
// - Var is a rematerializable variable and rematerializable pass-through is
// not allowed (in which case we need an lea instruction).
// not allowed (in which case we need a lea instruction).
if (MustRematerialize) {
assert(Ty == IceType_i32);
Variable *NewVar = makeReg(Ty, RegNum);
// Since Var is rematerializable, the offset will be added when the lea is
// emitted.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment