diff options
author | Sam Parker <sam.parker@arm.com> | 2018-11-05 10:58:37 +0000 |
---|---|---|
committer | Sam Parker <sam.parker@arm.com> | 2018-11-05 10:58:37 +0000 |
commit | fcd8adab309c984360d3767dc794edc2ee1603bf (patch) | |
tree | 25a8dae4e2be92f2d99c85d17aab1fb3c73b3db6 /clang/lib/Lex/ModuleMap.cpp | |
parent | 767413360bc7d91fd885baf5238b6c181b5f2843 (diff) | |
download | llvm-fcd8adab309c984360d3767dc794edc2ee1603bf.zip llvm-fcd8adab309c984360d3767dc794edc2ee1603bf.tar.gz llvm-fcd8adab309c984360d3767dc794edc2ee1603bf.tar.bz2 |
[ARM][ARMCGP] Remove unecessary zexts and truncs
r345840 slightly changed the way promotion happens which could
result in zext and truncs having the same source and destination
types. This fixes that issue.
We can now also remove the zext and trunc in the following case:
(zext (trunc (promoted op)), i32)
This means that we can no longer treat a value, that is only used by
a sink, to be safe to promote.
I've also added in some extra asserts and replaced a cast for a
dyn_cast.
Differential Revision: https://reviews.llvm.org/D54032
llvm-svn: 346125
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions