[AMDGPU] performAddCombine should run after DAG is legalized.
authorFarhana Aleen <farhana.aleen@gmail.com>
Wed, 2 May 2018 16:24:10 +0000 (16:24 +0000)
committerFarhana Aleen <farhana.aleen@gmail.com>
Wed, 2 May 2018 16:24:10 +0000 (16:24 +0000)
commit2f4100f56e605df76d32a5407218e5da32217161
tree4b3ba9d88562fbe0796507e5116188dcfe8a0ac9
parenta53d3308904714540f3a53458120d6a215433e85
[AMDGPU] performAddCombine should run after DAG is legalized.

Summary: performAddCombine should run after DAG is legalized; Otherwise generic optimization
         in the DAGCombiner can optimize an addcarry+trunc into an addcarry instruction with
         illegal types.

Author: FarhanaAleen

Reviewed By: rampitec

Subscribers: llvm-commits, AMDGPU

Differential Revision: https://reviews.llvm.org/D46337

llvm-svn: 331368
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
llvm/test/CodeGen/AMDGPU/combine-cond-add-sub.ll