diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2020-10-08 10:53:32 +0100 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2020-10-08 10:53:32 +0100 |
commit | aa47962cc9493cd79ca78954e721ed02479729c7 (patch) | |
tree | a78452d93eed379a0dd3b6821f966091e78facb1 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | cc83dc191c1ef04907ccd4308cc6aa5bf6fcd3c6 (diff) | |
download | llvm-aa47962cc9493cd79ca78954e721ed02479729c7.zip llvm-aa47962cc9493cd79ca78954e721ed02479729c7.tar.gz llvm-aa47962cc9493cd79ca78954e721ed02479729c7.tar.bz2 |
[InstCombine] canNarrowShiftAmt - replace custom Constant matching with m_SpecificInt_ICMP
The existing code ignores undef values which matches m_SpecificInt_ICMP, although m_SpecificInt_ICMP returns false for an all-undef constant, I've added test coverage at rGfe0197e194a64f9 to show that undef folding should already have dealt with that case.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions