Skip to content

Commit ba05d30

Browse files
committed
Hackfix for combine generating unsupported types.
1 parent 180bbef commit ba05d30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/InstCombine/InstructionCombining.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ bool InstCombinerImpl::shouldChangeType(unsigned FromWidth,
245245
if (!FromLegal && !ToLegal && ToWidth > FromWidth)
246246
return false;
247247

248-
return true;
248+
return ToLegal; // FIXME jacobly: change to true when backend supports illegal types
249249
}
250250

251251
/// Return true if it is desirable to convert a computation from 'From' to 'To'.

0 commit comments

Comments
 (0)