diff options
author | Craig Topper <craig.topper@sifive.com> | 2023-08-14 13:02:24 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2023-08-14 13:02:24 -0700 |
commit | 6299650f9788c8b6cc784dbf8fe4086b552be2f1 (patch) | |
tree | ed1a13518a1f9987fe8a5d6768e24590eb715362 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | a63bd7e99b00c6c970f38ea596f708e42b8c98e5 (diff) | |
download | llvm-6299650f9788c8b6cc784dbf8fe4086b552be2f1.zip llvm-6299650f9788c8b6cc784dbf8fe4086b552be2f1.tar.gz llvm-6299650f9788c8b6cc784dbf8fe4086b552be2f1.tar.bz2 |
[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
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions