Check users of instrinsics instead of traversing entire function.NFC
authorAnna Thomas <anna@azul.com>
Wed, 13 Apr 2022 16:08:53 +0000 (12:08 -0400)
committerAnna Thomas <anna@azul.com>
Wed, 13 Apr 2022 16:28:51 +0000 (12:28 -0400)
commit28f27dd2641739e328ef0bec68a577ff44cbec33
tree8635f74931370b2a8d36e2f9b4505ecb54066575
parentb870620c29814b71b0c9788f17f8054f04ae2d40
Check users of instrinsics instead of traversing entire function.NFC

Updated LowerGuardIntrinsic and LowerWidenableCondition to check for
users of the respective intrinsic, instead of checking for guards and
widenable conditions by traversing the entire function.

This is an NFC. Should save some compile time.
llvm/lib/Transforms/Scalar/LowerGuardIntrinsic.cpp
llvm/lib/Transforms/Scalar/LowerWidenableCondition.cpp