diff options
author | William S. Moses <gh@wsmoses.com> | 2021-06-07 13:44:07 -0400 |
---|---|---|
committer | William S. Moses <gh@wsmoses.com> | 2021-06-08 11:43:09 -0400 |
commit | 965ad79ea7d0b98f905a27785a6fd0091b904218 (patch) | |
tree | 5a408eb090016cf072a0305e50bdc8202431cbc5 /llvm/lib/Support/TargetParser.cpp | |
parent | 49454ebc56ecf8b11f4b6c328c9fdb7b92307684 (diff) | |
download | llvm-965ad79ea7d0b98f905a27785a6fd0091b904218.zip llvm-965ad79ea7d0b98f905a27785a6fd0091b904218.tar.gz llvm-965ad79ea7d0b98f905a27785a6fd0091b904218.tar.bz2 |
[MLIR][MemRef] Only allow fold of cast for the pointer operand, not the value
Currently canonicalizations of a store and a cast try to fold all casts into the store.
In the case where the operand being stored is itself a cast, this is illegal as the type of the value being stored
will change. This PR fixes this by not checking the value for folding with a cast.
Depends on https://reviews.llvm.org/D103828
Differential Revision: https://reviews.llvm.org/D103829
Diffstat (limited to 'llvm/lib/Support/TargetParser.cpp')
0 files changed, 0 insertions, 0 deletions