Try to remove extra bitcasts around logicops if we're dealing with illegal types
Fixes the regressions in D145939
Paths
| Differential D146032
[DAG] Fold (bitcast (logicop (bitcast x), (c))) -> (logicop x, (bitcast c)) iff the current logicop type is illegal ClosedPublic Authored by RKSimon on Mar 14 2023, 4:03 AM.
Details Summary Try to remove extra bitcasts around logicops if we're dealing with illegal types Fixes the regressions in D145939
Diff Detail
Event TimelineComment Actions
s/and/logicop/ ? RKSimon retitled this revision from [DAG] Fold (bitcast (logicop (bitcast x), (c))) -> (and x, (bitcast c)) iff the current logicop type is illegal to [DAG] Fold (bitcast (logicop (bitcast x), (c))) -> (logicop x, (bitcast c)) iff the current logicop type is illegal. Comment ActionsConsistently use logicop This revision is now accepted and ready to land.Mar 14 2023, 7:01 AM This revision was landed with ongoing or failed builds.Mar 14 2023, 7:42 AM Closed by commit rG4bf004e07e2b: [DAG] Fold (bitcast (logicop (bitcast x), (c))) -> (logicop x, (bitcast c)) iff… (authored by RKSimon). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 505094 llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/AMDGPU/fneg.ll
|