Commit c7f0e499 authored by Nikita Popov's avatar Nikita Popov
Browse files

[InstCombine] Fix canAlwaysEvaluateInTy() with constant exprs

The m_ZExtOrSExt / m_Trunc in the following code can match constant
expressions, which we don't want here. Make sure we bail out early
for non-immediate constants.
parent 128b3b61
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