[CodeGenPrepare] Set debug locs when folding a comparison into a uadd.with.overflow
authorVedant Kumar <vsk@apple.com>
Wed, 22 Aug 2018 18:15:03 +0000 (18:15 +0000)
committerVedant Kumar <vsk@apple.com>
Wed, 22 Aug 2018 18:15:03 +0000 (18:15 +0000)
commita85ca3de66e7c52ed96323c6decc16458312042d
treeca17f96a5f91270b77de7b21f53996af24a93107
parent9cee1adc1a0f8f40cb3722db07066000ff0c35b4
[CodeGenPrepare] Set debug locs when folding a comparison into a uadd.with.overflow

CGP can replace a branch + select with a uadd.with.overflow. Teach it to
set debug locations as it does this.

llvm-svn: 340432
llvm/lib/CodeGen/CodeGenPrepare.cpp
llvm/test/Transforms/CodeGenPrepare/overflow-intrinsics.ll