Skip to content
Commit 6299650f authored by Craig Topper's avatar Craig Topper
Browse files

[DAGCombiner] Fold trunc(undef) -> undef.

We already do this in getNode, but the undef might appear during
another DAGCombine.

While here remove code for handling noop truncates. getNode checks
the types and won't a noop truncate.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D157910
parent a63bd7e9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment