Commit bc38c427 authored by Noah Goldstein's avatar Noah Goldstein
Browse files

[DAGCombiner][AArch64] Fix incorrect cast VT in `takeInexpensiveLog2`

Previously, we where taking `CurVT` before finalizing `ToCast` which
meant potentially returning an `SDValue` with an illegal `ValueType`
for the operation.

Fix is to just take `CurVT` after we have finalized `ToCast` with
`PeekThroughCastsAndTrunc`.
parent f1128f37
Supports Markdown
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