commit | 49d60fdc2e8e0fd7d1e33e84322fbe2c674e4f1e | [log] [tgz] |
---|---|---|
author | Zi Xuan Wu <wuzish@cn.ibm.com> | Tue Apr 30 03:01:14 2019 +0000 |
committer | Zi Xuan Wu <wuzish@cn.ibm.com> | Tue Apr 30 03:01:14 2019 +0000 |
tree | 6361b73d85430f054bac49c12495cb85b8546f17 | |
parent | ab7747b727d79c9cc67b0ffb75528bf9bb67d9e8 [diff] |
[DAGCombiner] Do not generate ISD::ADDE node if adde is not legal for the target when combine ISD::TRUNC node Do not combine (trunc adde(X, Y, Carry)) into (adde trunc(X), trunc(Y), Carry), if adde is not legal for the target. Even it's at type-legalize phase. Because adde is special and will not be legalized at operation-legalize phase later. This fixes: PR40922 https://bugs.llvm.org/show_bug.cgi?id=40922 Differential Revision: https://reviews.llvm.org//D60854 llvm-svn: 359532