HomePhabricator

[PowerPC] PPCBoolRetToInt: Don't translate Constant's operands
b931e22c9543Unpublished

Authored by lkail on Aug 27 2020, 6:56 PM.

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

[PowerPC] PPCBoolRetToInt: Don't translate Constant's operands

When collecting i1 values via findAllDefs, ignore Constant's
operands, since Constant's operands might not be i1.

Fixes https://bugs.llvm.org/show_bug.cgi?id=46923 which causes ICE

llvm-project/llvm/lib/IR/Constants.cpp:1924: static llvm::Constant *llvm::ConstantExpr::getZExt(llvm::Constant *, llvm::Type *, bool): Assertion `C->getType()->getScalarSizeInBits() < Ty->getScalarSizeInBits()&& "SrcTy must be smaller than DestTy for ZExt!"' failed.

Differential Revision: https://reviews.llvm.org/D85007

(cherry picked from commit cbea17568f4301582c1d5d43990f089ca6cff522)

Details

Committed
hansAug 28 2020, 1:56 AM
Parents
rG5d21aedfdbf0: Add release note for RecoveryExpr.
Branches
Unknown
Tags
Unknown