[CGP] use IRBuilder to simplify code
authorSanjay Patel <spatel@rotateright.com>
Mon, 4 Feb 2019 16:30:46 +0000 (16:30 +0000)
committerSanjay Patel <spatel@rotateright.com>
Mon, 4 Feb 2019 16:30:46 +0000 (16:30 +0000)
commitc00bdab4c897032f773b1101d48a68e8e273aae4
tree7284bb080510ba6af8d2214c9c9c65d7a49f157c
parent47f0d136f120452bdaa0b5d403ac1fb57f7a8f59
[CGP] use IRBuilder to simplify code

This is no-functional-change-intended although there could
be intermediate variations caused by a difference in the
debug info produced by setting that from the builder's
insertion point.

I'm updating the IR test file associated with this code just
to show that the naming differences from using the builder
are visible.

The motivation for adding a helper function is that we are
likely to extend this code to deal with other overflow ops.

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